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

support null image encoder

This commit is contained in:
Luke Pulverenti 2015-10-26 01:29:32 -04:00
parent 6000b2ee0f
commit b9ad8322dd
17 changed files with 214 additions and 44 deletions

View file

@ -244,6 +244,7 @@ var Dashboard = {
importCss: function (url) {
var originalUrl = url;
url += "?v=" + window.dashboardVersion;
if (!Dashboard.importedCss) {
@ -261,12 +262,21 @@ var Dashboard = {
} else {
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('data-url', originalUrl);
link.setAttribute('type', 'text/css');
link.setAttribute('href', url);
document.head.appendChild(link);
}
},
removeStylesheet: function (url) {
var elem = document.querySelector('link[data-url=\'' + url + '\']');
if (elem) {
elem.parentNode.removeChild(elem);
}
},
showError: function (message) {
Dashboard.alert(message);