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:
parent
c52720b994
commit
ce1763c192
5 changed files with 30 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue