mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
fix block by tags screen
This commit is contained in:
parent
4ed6f6ee0c
commit
cfa418fd47
@ -1,4 +1,4 @@
|
|||||||
define(['jQuery'], function ($) {
|
define(['jQuery', 'listViewStyle', 'paper-icon-button-light'], function ($) {
|
||||||
|
|
||||||
function populateRatings(allParentalRatings, page) {
|
function populateRatings(allParentalRatings, page) {
|
||||||
|
|
||||||
@ -111,23 +111,27 @@
|
|||||||
|
|
||||||
function loadBlockedTags(page, tags) {
|
function loadBlockedTags(page, tags) {
|
||||||
|
|
||||||
var html = '<ul data-role="listview" data-inset="true" data-split-icon="delete">' + tags.map(function (h) {
|
var html = tags.map(function (h) {
|
||||||
|
|
||||||
var li = '<li>';
|
var li = '<div class="listItem">';
|
||||||
|
|
||||||
li += '<a href="#">';
|
li += '<div class="listItemBody">';
|
||||||
|
li += '<h3 class="listItemBodyTest">';
|
||||||
|
li += h;
|
||||||
|
li += '</h3>';
|
||||||
|
li += '</div>';
|
||||||
|
|
||||||
li += '<div style="font-weight:normal;">' + h + '</div>';
|
li += '<button type="button" is="paper-icon-button-light" class="blockedTag btnDeleteTag listItemButton" data-tag="' + h + '"><i class="md-icon">delete</i></button>';
|
||||||
|
|
||||||
li += '</a>';
|
li += '</div>';
|
||||||
|
|
||||||
li += '<a class="blockedTag btnDeleteTag" href="#" data-tag="' + h + '" data-icon="delete"></a>';
|
|
||||||
|
|
||||||
li += '</li>';
|
|
||||||
|
|
||||||
return li;
|
return li;
|
||||||
|
|
||||||
}).join('') + '</ul>';
|
}).join('');
|
||||||
|
|
||||||
|
if (html) {
|
||||||
|
html = '<div class="paperList">' + html + '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
var elem = $('.blockedTags', page).html(html).trigger('create');
|
var elem = $('.blockedTags', page).html(html).trigger('create');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user