only show gallery when there's something to show

This commit is contained in:
Luke Pulverenti 2013-04-16 23:10:05 -04:00
parent 21a8644607
commit 701be2b831
4 changed files with 67 additions and 1 deletions

View file

@ -31,6 +31,12 @@
setInitialCollapsibleState(page, item);
renderDetails(page, item);
if (LibraryBrowser.shouldDisplayGallery(item)) {
$('#galleryCollapsible', page).show();
} else {
$('#galleryCollapsible', page).hide();
}
Dashboard.hideLoadingMsg();
});
}