1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add adult content filter to catalog

This commit is contained in:
Luke Pulverenti 2014-06-07 17:06:01 -04:00
parent c52720b994
commit ce1763c192
5 changed files with 30 additions and 12 deletions

View file

@ -2,7 +2,8 @@
// The base query options
var query = {
TargetSystems: 'Server'
TargetSystems: 'Server',
IsAdult: false
};
function getApps() {
@ -79,7 +80,7 @@
}
html += '<div class="ui-bar-a" style="padding: 0 1em;"><h3>' + category + '</h3></div>';
currentCategory = category;
}
@ -126,7 +127,7 @@
})[0];
html += "<div class='posterItemText' style='color:#000;'>";
if (installedPlugin) {
html += Globalize.translate('LabelVersionInstalled').replace("{0}", installedPlugin.Version);
} else {
@ -173,11 +174,17 @@
reloadList(page);
});
$('#chkAdult', page).on('change', function () {
query.IsAdult = this.checked ? null : false;
reloadList(page);
});
}).on('pageshow', "#pluginCatalogPage", function () {
var page = this;
$(".radioPackageTypes", page).each(function() {
$(".radioPackageTypes", page).each(function () {
this.checked = this.value == query.TargetSystems;