1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update local sync

This commit is contained in:
Luke Pulverenti 2016-08-16 00:12:12 -04:00
parent 95f0f7874f
commit d0aee5580a
8 changed files with 93 additions and 39 deletions

View file

@ -2054,21 +2054,30 @@
});
}
function onSyncLocalClick() {
if (this.checked) {
require(['syncDialog'], function (syncDialog) {
syncDialog.showMenu({
items: [currentItem]
});
});
} else {
}
}
return function (view, params) {
function onSyncLocalClick() {
if (this.checked) {
require(['syncDialog'], function (syncDialog) {
syncDialog.showMenu({
items: [currentItem]
});
});
} else {
require(['confirm'], function (confirm) {
confirm(Globalize.translate('ConfirmRemoveDownload')).then(function () {
ApiClient.cancelSyncItems([currentItem.Id]);
}, function () {
updateSyncStatus(view, currentItem);
});
});
}
}
function onPlayTrailerClick() {
playTrailer(view);
}