added detail page indicator for missing
This commit is contained in:
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>
|
||||
</div>
|
||||
<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 style="background: #cc3333; padding: 5px 1em; border-radius: 5px;">OFFLINE</span>
|
||||
</span>
|
||||
|
||||
@@ -25,11 +25,33 @@
|
||||
LibraryBrowser.renderDetailPageBackdrop(page, item);
|
||||
|
||||
if (item.LocationType == "Offline") {
|
||||
|
||||
$('#offlineIndicator', page).show();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
$('#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") {
|
||||
$('#playButtonContainer', page).show();
|
||||
} else {
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('boxsets', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -148,6 +146,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('boxsets', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#boxsetsPage", function () {
|
||||
@@ -155,13 +155,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).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>";
|
||||
|
||||
var rel = item.IsFolder ? 'folder' : 'default';
|
||||
|
||||
@@ -255,13 +255,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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');
|
||||
|
||||
$('.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');
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('gamegenres', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -111,6 +109,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('gamegenres', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#gameGenresPage", function () {
|
||||
@@ -118,13 +118,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
});
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
Fields: "Genres,Studios,PrimaryImageAspectRatio",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('games', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -201,6 +199,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('games', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#gamesPage", function () {
|
||||
@@ -209,13 +209,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
Fields: "UserData",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('gamestudios', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -112,6 +110,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('gamestudios', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#gameStudiosPage", function () {
|
||||
@@ -119,13 +119,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('gamesystems', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -112,6 +110,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('gamesystems', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#gamesystemsPage", function () {
|
||||
@@ -119,13 +119,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -189,13 +189,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -861,12 +861,6 @@
|
||||
return '';
|
||||
}
|
||||
|
||||
if (item.Type == "Season") {
|
||||
if (item.RecursiveUnplayedItemCount) {
|
||||
return '<div class="posterRibbon">' + item.RecursiveUnplayedItemCount + ' New</div>';
|
||||
}
|
||||
}
|
||||
|
||||
if (item.Type == "Series") {
|
||||
if (item.RecursiveUnplayedItemCount && item.PlayedPercentage) {
|
||||
return '<div class="posterRibbon">' + item.RecursiveUnplayedItemCount + ' New</div>';
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('moviegenres', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -112,6 +110,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('moviegenres', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#movieGenresPage", function () {
|
||||
@@ -119,13 +119,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
});
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
PersonTypes: "",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('moviepeople', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -144,6 +142,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('moviepeople', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#moviePeoplePage", function () {
|
||||
@@ -151,13 +151,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('movies', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
@@ -232,6 +230,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('movies', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#moviesPage", function () {
|
||||
@@ -239,13 +239,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('moviestudios', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -112,6 +110,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('moviestudios', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#movieStudiosPage", function () {
|
||||
@@ -119,13 +119,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('movietrailers', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -144,6 +142,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('movietrailers', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#movieTrailersPage", function () {
|
||||
@@ -152,13 +152,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicalbums', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -176,6 +174,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicalbums', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#musicAlbumsPage", function () {
|
||||
@@ -185,13 +185,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicartists', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -127,6 +125,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicartists', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#musicArtistsPage", function () {
|
||||
@@ -134,13 +134,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicgenres', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -112,6 +110,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicgenres', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#musicGenresPage", function () {
|
||||
@@ -119,13 +119,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
});
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicvideos', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -224,6 +222,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('musicvideos', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#musicVideosPage", function () {
|
||||
@@ -231,13 +231,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -21,13 +21,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.radioSortBy', page).each(function () {
|
||||
|
||||
this.checked = query.SortBy == this.getAttribute('data-sortby');
|
||||
this.checked = (query.SortBy || '').toLowerCase() == this.getAttribute('data-sortby').toLowerCase();
|
||||
|
||||
}).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');
|
||||
}
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvgenres', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -112,6 +110,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvgenres', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#tvGenresPage", function () {
|
||||
@@ -119,13 +119,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
PersonTypes: "",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvpeople', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -144,6 +142,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvpeople', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#tvPeoplePage", function () {
|
||||
@@ -151,13 +151,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
Fields: "SeriesInfo,DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvshows', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -225,6 +223,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvshows', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#tvShowsPage", function () {
|
||||
@@ -232,7 +232,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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');
|
||||
|
||||
@@ -245,12 +251,6 @@
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
$('.radioSortOrder', this).each(function () {
|
||||
|
||||
this.checked = query.SortOrder == this.getAttribute('data-sortorder');
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
$('.chkStandardFilter', this).each(function () {
|
||||
|
||||
var filters = "," + (query.Filters || "");
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
Fields: "DateCreated",
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvstudios', query);
|
||||
|
||||
function reloadItems(page) {
|
||||
|
||||
@@ -112,6 +110,8 @@
|
||||
query.StartIndex = 0;
|
||||
}
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('tvstudios', query);
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
}).on('pageshow', "#tvStudiosPage", function () {
|
||||
@@ -119,13 +119,13 @@
|
||||
// Reset form values using the last used query
|
||||
$('.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 == this.getAttribute('data-sortorder');
|
||||
this.checked = (query.SortOrder || '').toLowerCase() == this.getAttribute('data-sortorder').toLowerCase();
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user