1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

updated nuget

This commit is contained in:
Luke Pulverenti 2014-04-15 00:23:08 -04:00
parent b7235c797f
commit b6526b65d0
3 changed files with 13 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 464 KiB

View file

@ -492,7 +492,6 @@ var Dashboard = {
html += '<img style="max-width:28px;vertical-align:middle;margin-right:5px;" src="' + imageUrl + '" />'; html += '<img style="max-width:28px;vertical-align:middle;margin-right:5px;" src="' + imageUrl + '" />';
} }
html += user.Name; html += user.Name;
html += '</h3>'; html += '</h3>';
@ -513,7 +512,7 @@ var Dashboard = {
$(this).off("panelafterclose").remove(); $(this).off("panelafterclose").remove();
}); });
$('#chkEnableThemeSongs', elem).checked(ThemeSongManager.enabled()).checkboxradio('refresh'); $('#chkEnableThemeSongs', elem).checked(window.ThemeSongManager.enabled()).checkboxradio('refresh');
}); });
}, },

View file

@ -1,4 +1,4 @@
(function (document, $) { (function (document, $, localStorage) {
var currentOwnerId; var currentOwnerId;
var currentThemeIds = []; var currentThemeIds = [];
@ -46,15 +46,14 @@
var key = userId + '-themesongs'; var key = userId + '-themesongs';
if (isEnabled != null) { if (isEnabled == null) {
return localStorage.getItem(key) == '1';
}
var val = isEnabled ? '1' : '0'; var val = isEnabled ? '1' : '0';
localStorage.setItem(key, val); localStorage.setItem(key, val);
return;
}
return localStorage.getItem(key);
} }
function getPlayer() { function getPlayer() {
@ -75,7 +74,9 @@
}); });
window.ThemeSongManager = { window.ThemeSongManager = {
enabled: enabled enabled: function (isEnabled) {
return enabled(isEnabled);
}
}; };
})(document, jQuery); })(document, jQuery, window.localStorage);