mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update list styles
This commit is contained in:
parent
559d8eb5f6
commit
2b483db762
21 changed files with 82 additions and 111 deletions
|
@ -319,14 +319,16 @@ var Dashboard = {
|
|||
|
||||
var parentElem = footer.querySelector('#footerNotifications');
|
||||
|
||||
var elem = parentElem.querySelector('#' + options.id);
|
||||
var notificationElementId = 'notification' + options.id;
|
||||
|
||||
if (!elem.length) {
|
||||
parentElem.insertAdjacentHTML('beforeend', '<p id="' + options.id + '" class="footerNotification"></p>');
|
||||
elem = parentElem.querySelector('#' + options.id);
|
||||
var elem = parentElem.querySelector('#' + notificationElementId);
|
||||
|
||||
if (!elem) {
|
||||
parentElem.insertAdjacentHTML('beforeend', '<p id="' + notificationElementId + '" class="footerNotification"></p>');
|
||||
elem = parentElem.querySelector('#' + notificationElementId);
|
||||
}
|
||||
|
||||
var onclick = removeOnHide ? "jQuery(\"#" + options.id + "\").trigger(\"notification.remove\").remove();" : "jQuery(\"#" + options.id + "\").trigger(\"notification.hide\").hide();";
|
||||
var onclick = removeOnHide ? "jQuery('#" + notificationElementId + "').trigger('notification.remove').remove();" : "jQuery('#" + notificationElementId + "').trigger('notification.hide').hide();";
|
||||
|
||||
if (options.allowHide !== false) {
|
||||
options.html += '<span style="margin-left: 1em;"><button is="emby-button" type="button" class="submit" onclick="' + onclick + '">' + Globalize.translate('ButtonHide') + "</button></span>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue