mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove page from widget
This commit is contained in:
parent
0f51a375ce
commit
515f4eff93
2 changed files with 58 additions and 87 deletions
|
@ -2505,10 +2505,9 @@ function pageIdOn(eventName, id, fn) {
|
|||
|
||||
pageClassOn('pagecreate', "page", function () {
|
||||
|
||||
var jPage = $(this);
|
||||
var page = this;
|
||||
|
||||
var current = jPage.data('theme');
|
||||
var current = page.getAttribute('data-theme');
|
||||
|
||||
if (!current) {
|
||||
|
||||
|
@ -2520,11 +2519,7 @@ pageClassOn('pagecreate', "page", function () {
|
|||
newTheme = 'a';
|
||||
}
|
||||
|
||||
current = jPage.page("option", "theme");
|
||||
|
||||
if (current && current != newTheme) {
|
||||
jPage.page("option", "theme", newTheme);
|
||||
}
|
||||
page.setAttribute("data-theme", newTheme);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue