1
0
Fork 0
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:
Luke Pulverenti 2015-11-29 01:58:37 -05:00
parent 0f51a375ce
commit 515f4eff93
2 changed files with 58 additions and 87 deletions

View file

@ -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);
}
});