added HasSyncJob

This commit is contained in:
Luke Pulverenti 2015-01-24 14:03:55 -05:00
parent 218e086d94
commit 543d70fdf6
6 changed files with 30 additions and 18 deletions

View file

@ -223,7 +223,7 @@
}
$(elem).html(html).lazyChildren();
$(elem).html(html).lazyChildren().createCardMenus();
handleLibraryLinkNavigations(elem);
});

View file

@ -477,8 +477,9 @@
supportsAddingToCollection: function (item) {
var invalidTypes = ['Person', 'Genre', 'MusicGenre', 'Studio', 'GameGenre', 'BoxSet', 'Playlist', 'UserView', 'CollectionFolder'];
return item.LocationType == 'FileSystem';
return item.LocationType == 'FileSystem' && !item.CollectionType && invalidTypes.indexOf(item.Type) == -1;
}
};

View file

@ -313,7 +313,8 @@
shape: "square",
lazy: true,
overlayText: false,
showTitle: true
showTitle: true,
centerText: true
});
$('.itemsContainer', elem).html(html).lazyChildren();
}
@ -410,10 +411,12 @@
});
$('.btnCloseSearch').on('click', function () {
$('.headerSearchInput').val('');
onHeaderSearchChange('');
});
$('.btnCloseSearch').on('click', closeSearchOverlay);
}
function closeSearchOverlay() {
$('.headerSearchInput').val('');
onHeaderSearchChange('');
}
$(document).on('pagehide', ".libraryPage", function () {
@ -421,11 +424,7 @@
$('#txtSearch', this).val('');
$('#searchHints', this).empty();
}).on('pagecontainerbeforehide', function () {
$('.headerSearchInput').val('');
getSearchOverlay(false).hide();
});
}).on('pagecontainerbeforehide', closeSearchOverlay);
$(document).on('headercreated', function () {