mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added detail page indicator for missing
This commit is contained in:
parent
55ff795d36
commit
b1901ee91e
26 changed files with 122 additions and 91 deletions
BIN
dashboard-ui/css/images/editor/missing.png
Normal file
BIN
dashboard-ui/css/images/editor/missing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -127,6 +127,9 @@
|
||||||
<a href="#" id="lnkNextItem" class="lnkNextItem lnkSibling hide">Next →</a>
|
<a href="#" id="lnkNextItem" class="lnkNextItem lnkSibling hide">Next →</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui-body-a" style="text-align: center; padding: .25em 0 .5em;">
|
<div class="ui-body-a" style="text-align: center; padding: .25em 0 .5em;">
|
||||||
|
<span id="missingIndicator" style="margin-left: .5em; display: none;">
|
||||||
|
<span style="background: #cc3333; padding: 5px 1em; border-radius: 5px;">MISSING</span>
|
||||||
|
</span>
|
||||||
<span id="offlineIndicator" style="margin-left: .5em; display: none;">
|
<span id="offlineIndicator" style="margin-left: .5em; display: none;">
|
||||||
<span style="background: #cc3333; padding: 5px 1em; border-radius: 5px;">OFFLINE</span>
|
<span style="background: #cc3333; padding: 5px 1em; border-radius: 5px;">OFFLINE</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -25,11 +25,33 @@
|
||||||
LibraryBrowser.renderDetailPageBackdrop(page, item);
|
LibraryBrowser.renderDetailPageBackdrop(page, item);
|
||||||
|
|
||||||
if (item.LocationType == "Offline") {
|
if (item.LocationType == "Offline") {
|
||||||
|
|
||||||
$('#offlineIndicator', page).show();
|
$('#offlineIndicator', page).show();
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$('#offlineIndicator', page).hide();
|
$('#offlineIndicator', page).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isMissingEpisode = false;
|
||||||
|
|
||||||
|
if (item.LocationType == "Virtual" && item.Type == "Episode") {
|
||||||
|
try {
|
||||||
|
if (item.PremiereDate && (new Date().getTime() >= parseISO8601Date(item.PremiereDate).getTime())) {
|
||||||
|
isMissingEpisode = true;
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isMissingEpisode) {
|
||||||
|
|
||||||
|
$('#missingIndicator', page).show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('#missingIndicator', page).hide();
|
||||||
|
}
|
||||||
|
|
||||||
if (MediaPlayer.canPlay(item) && item.LocationType !== "Offline" && item.LocationType !== "Virtual") {
|
if (MediaPlayer.canPlay(item) && item.LocationType !== "Offline" && item.LocationType !== "Virtual") {
|
||||||
$('#playButtonContainer', page).show();
|
$('#playButtonContainer', page).show();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('boxsets', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -148,6 +146,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('boxsets', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#boxsetsPage", function () {
|
}).on('pageshow', "#boxsetsPage", function () {
|
||||||
|
@ -155,13 +155,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.Type == "Episode" && item.LocationType == "Virtual") {
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (item.PremiereDate && (new Date().getTime() >= parseISO8601Date(item.PremiereDate).getTime())) {
|
||||||
|
htmlName += '<img src="css/images/editor/missing.png" title="Missing episode." />';
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
htmlName += "</div>";
|
htmlName += "</div>";
|
||||||
|
|
||||||
var rel = item.IsFolder ? 'folder' : 'default';
|
var rel = item.IsFolder ? 'folder' : 'default';
|
||||||
|
|
|
@ -255,13 +255,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = (query.SortBy || '').toLowerCase() == (this.getAttribute('data-sortby') || '').toLowerCase();
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = (query.SortOrder || '').toLowerCase() == (this.getAttribute('data-sortorder') || '').toLowerCase();
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('gamegenres', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -111,6 +109,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('gamegenres', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#gameGenresPage", function () {
|
}).on('pageshow', "#gameGenresPage", function () {
|
||||||
|
@ -118,13 +118,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
Fields: "Genres,Studios,PrimaryImageAspectRatio",
|
Fields: "Genres,Studios,PrimaryImageAspectRatio",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('games', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -201,6 +199,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('games', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#gamesPage", function () {
|
}).on('pageshow', "#gamesPage", function () {
|
||||||
|
@ -209,13 +209,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
Fields: "UserData",
|
Fields: "UserData",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('gamestudios', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -112,6 +110,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('gamestudios', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#gameStudiosPage", function () {
|
}).on('pageshow', "#gameStudiosPage", function () {
|
||||||
|
@ -119,13 +119,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('gamesystems', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -112,6 +110,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('gamesystems', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#gamesystemsPage", function () {
|
}).on('pageshow', "#gamesystemsPage", function () {
|
||||||
|
@ -119,13 +119,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -189,13 +189,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -861,12 +861,6 @@
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.Type == "Season") {
|
|
||||||
if (item.RecursiveUnplayedItemCount) {
|
|
||||||
return '<div class="posterRibbon">' + item.RecursiveUnplayedItemCount + ' New</div>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (item.Type == "Series") {
|
if (item.Type == "Series") {
|
||||||
if (item.RecursiveUnplayedItemCount && item.PlayedPercentage) {
|
if (item.RecursiveUnplayedItemCount && item.PlayedPercentage) {
|
||||||
return '<div class="posterRibbon">' + item.RecursiveUnplayedItemCount + ' New</div>';
|
return '<div class="posterRibbon">' + item.RecursiveUnplayedItemCount + ' New</div>';
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('moviegenres', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -112,6 +110,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('moviegenres', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#movieGenresPage", function () {
|
}).on('pageshow', "#movieGenresPage", function () {
|
||||||
|
@ -119,13 +119,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,8 +11,6 @@
|
||||||
PersonTypes: "",
|
PersonTypes: "",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('moviepeople', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -144,6 +142,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('moviepeople', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#moviePeoplePage", function () {
|
}).on('pageshow', "#moviePeoplePage", function () {
|
||||||
|
@ -151,13 +151,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('movies', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
@ -232,6 +230,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('movies', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#moviesPage", function () {
|
}).on('pageshow', "#moviesPage", function () {
|
||||||
|
@ -239,13 +239,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('moviestudios', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -112,6 +110,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('moviestudios', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#movieStudiosPage", function () {
|
}).on('pageshow', "#movieStudiosPage", function () {
|
||||||
|
@ -119,13 +119,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('movietrailers', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -144,6 +142,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('movietrailers', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#movieTrailersPage", function () {
|
}).on('pageshow', "#movieTrailersPage", function () {
|
||||||
|
@ -152,13 +152,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('musicalbums', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -176,6 +174,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('musicalbums', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#musicAlbumsPage", function () {
|
}).on('pageshow', "#musicAlbumsPage", function () {
|
||||||
|
@ -185,13 +185,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('musicartists', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -127,6 +125,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('musicartists', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#musicArtistsPage", function () {
|
}).on('pageshow', "#musicArtistsPage", function () {
|
||||||
|
@ -134,13 +134,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('musicgenres', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -112,6 +110,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('musicgenres', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#musicGenresPage", function () {
|
}).on('pageshow', "#musicGenresPage", function () {
|
||||||
|
@ -119,13 +119,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('musicvideos', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -224,6 +222,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('musicvideos', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#musicVideosPage", function () {
|
}).on('pageshow', "#musicVideosPage", function () {
|
||||||
|
@ -231,13 +231,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -21,13 +21,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', page).each(function () {
|
$('.radioSortBy', page).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', page).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('tvgenres', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -112,6 +110,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('tvgenres', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#tvGenresPage", function () {
|
}).on('pageshow', "#tvGenresPage", function () {
|
||||||
|
@ -119,13 +119,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,6 @@
|
||||||
PersonTypes: "",
|
PersonTypes: "",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('tvpeople', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -144,6 +142,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('tvpeople', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#tvPeoplePage", function () {
|
}).on('pageshow', "#tvPeoplePage", function () {
|
||||||
|
@ -151,13 +151,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
Fields: "SeriesInfo,DateCreated",
|
Fields: "SeriesInfo,DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('tvshows', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -225,6 +223,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('tvshows', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#tvShowsPage", function () {
|
}).on('pageshow', "#tvShowsPage", function () {
|
||||||
|
@ -232,7 +232,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
@ -245,12 +251,6 @@
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
|
||||||
|
|
||||||
$('.chkStandardFilter', this).each(function () {
|
$('.chkStandardFilter', this).each(function () {
|
||||||
|
|
||||||
var filters = "," + (query.Filters || "");
|
var filters = "," + (query.Filters || "");
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryBrowser.loadSavedQueryValues('tvstudios', query);
|
|
||||||
|
|
||||||
function reloadItems(page) {
|
function reloadItems(page) {
|
||||||
|
|
||||||
|
@ -112,6 +110,8 @@
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LibraryBrowser.loadSavedQueryValues('tvstudios', query);
|
||||||
|
|
||||||
reloadItems(this);
|
reloadItems(this);
|
||||||
|
|
||||||
}).on('pageshow', "#tvStudiosPage", function () {
|
}).on('pageshow', "#tvStudiosPage", function () {
|
||||||
|
@ -119,13 +119,13 @@
|
||||||
// Reset form values using the last used query
|
// Reset form values using the last used query
|
||||||
$('.radioSortBy', this).each(function () {
|
$('.radioSortBy', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
$('.radioSortOrder', this).each(function () {
|
$('.radioSortOrder', this).each(function () {
|
||||||
|
|
||||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||||
|
|
||||||
}).checkboxradio('refresh');
|
}).checkboxradio('refresh');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue