diff --git a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html index 8212363..7c24944 100644 --- a/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html +++ b/Jellyfin.Plugin.SkinManager/Configuration/configurationpage.html @@ -118,7 +118,8 @@ var description = option.description; //html += '
'; html += '
' - return html + return html; + } function getOptions(option){ var html = ""; var selections = option.selections @@ -140,15 +141,7 @@ html += '
'+description+'
' return html } - function updateDescription( ){ - var description = document.getElementById("description"); - var selected = $('#cssOptions').val(); - data.forEach(element => { - if(element.defaultCss == selected){ - description.innerHTML=element.description; - } - }) - } + function createCss(){ var savedHtml = ""; //process checkbox @@ -199,11 +192,13 @@ return css; } function updateSelectors(){ - var selected = $('#cssOptions').val(); + var selected = document.getElementById("cssOptions"); + var description = document.getElementById("description"); data.forEach(element=>{ - if(element.defaultCss == selected){ + if(element.name == selected.selectedOptions[0].innerText){ loadOptions(element.options); - updateDescription(); + description.innerHTML=element.description; + } }) } @@ -257,24 +252,7 @@ return false; }); - + - + \ No newline at end of file diff --git a/skins-3.0.json b/skins-3.0.json index ab24588..7feb856 100644 --- a/skins-3.0.json +++ b/skins-3.0.json @@ -97,25 +97,25 @@ "type": "checkBox", "name": "Sea Gradient", "description": "changes the Jellyfin themed Hover gradient", - "css": "@import url('https://prayag17.github.io/JellySkin/seaGradient.css');", + "css": "@import url('https://prayag17.github.io/JellySkin/seaGradient.css');" }, { "type": "checkBox", "name": "Sunset Gradient", "description": "changes the Jellyfin themed Hover gradient", - "css": "@import url('https://prayag17.github.io/JellySkin/sunsetGradient.css');", + "css": "@import url('https://prayag17.github.io/JellySkin/sunsetGradient.css');" }, { "type": "checkBox", "name": "Night Sky Gradient", "description": "changes the Jellyfin themed Hover gradient", - "css": "@import url('https://prayag17.github.io/JellySkin/nightSkyGradient.css');", + "css": "@import url('https://prayag17.github.io/JellySkin/nightSkyGradient.css');" }, { "type": "checkBox", "name": "Morning Gradient", "description": "changes the Jellyfin themed Hover gradient", - "css": "@import url('https://prayag17.github.io/JellySkin/morningGradient.css');", + "css": "@import url('https://prayag17.github.io/JellySkin/morningGradient.css');" } ] },