mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
trim loaded sync scripts
This commit is contained in:
parent
f220653d1b
commit
c49de6a93e
6 changed files with 124 additions and 121 deletions
|
@ -112,7 +112,7 @@
|
|||
$('.btnPlayTrailer', page).addClass('hide');
|
||||
}
|
||||
|
||||
if (SyncManager.isAvailable(item, user)) {
|
||||
if (LibraryBrowser.enableSync(item, user)) {
|
||||
$('.btnSync', page).removeClass('hide');
|
||||
} else {
|
||||
$('.btnSync', page).addClass('hide');
|
||||
|
@ -1987,8 +1987,10 @@
|
|||
|
||||
$('.btnSync', page).on('click', function () {
|
||||
|
||||
SyncManager.showMenu({
|
||||
items: [currentItem]
|
||||
require(['syncDialog'], function (syncDialog) {
|
||||
syncDialog.showMenu({
|
||||
items: [currentItem]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue