trim loaded sync scripts

This commit is contained in:
Luke Pulverenti 2016-02-17 23:57:19 -05:00
parent f220653d1b
commit c49de6a93e
6 changed files with 124 additions and 121 deletions

View file

@ -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]
});
});
});