update photos
This commit is contained in:
parent
400202c5a0
commit
2b33df50a9
14 changed files with 75 additions and 270 deletions
|
@ -75,39 +75,34 @@
|
|||
|
||||
var context = getParameterByName('context');
|
||||
|
||||
if (context == 'home') {
|
||||
context = 'folders';
|
||||
}
|
||||
var posterOptions = {
|
||||
items: result.Items,
|
||||
shape: "auto",
|
||||
centerText: true,
|
||||
lazy: true
|
||||
};
|
||||
|
||||
if (view == "Backdrop") {
|
||||
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "backdrop",
|
||||
showTitle: true,
|
||||
centerText: true,
|
||||
preferBackdrop: true,
|
||||
context: context
|
||||
});
|
||||
posterOptions.shape = 'backdrop';
|
||||
posterOptions.showTitle = true;
|
||||
posterOptions.preferBackdrop = true;
|
||||
|
||||
html = LibraryBrowser.getPosterViewHtml(posterOptions);
|
||||
}
|
||||
else if (view == "Poster") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "auto",
|
||||
showTitle: true,
|
||||
centerText: true,
|
||||
context: context
|
||||
});
|
||||
|
||||
posterOptions.showTitle = context != 'photos';
|
||||
|
||||
html = LibraryBrowser.getPosterViewHtml(posterOptions);
|
||||
}
|
||||
else if (view == "PosterCard") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "auto",
|
||||
showTitle: true,
|
||||
context: context,
|
||||
cardLayout: true,
|
||||
showYear: true
|
||||
});
|
||||
|
||||
posterOptions.showTitle = true;
|
||||
posterOptions.showYear = true;
|
||||
posterOptions.cardLayout = true;
|
||||
|
||||
html = LibraryBrowser.getPosterViewHtml(posterOptions);
|
||||
}
|
||||
|
||||
var elem = page.querySelector('#items');
|
||||
|
@ -276,6 +271,7 @@
|
|||
}
|
||||
|
||||
updateFilterControls(page);
|
||||
LibraryMenu.setBackButtonVisible(getParameterByName('context'));
|
||||
|
||||
}).on('pagebeforehide', "#itemListPage", function () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue