From ad597d71e15d0512b63d9472b852c234ea1a7325 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Thu, 3 Dec 2020 07:18:13 -0700 Subject: [PATCH 1/2] Update Jellyfin.Plugin.Template/Configuration/configPage.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Odd Stråbø --- Jellyfin.Plugin.Template/Configuration/configPage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Template/Configuration/configPage.html b/Jellyfin.Plugin.Template/Configuration/configPage.html index d2cc1bd..2c8c9c6 100644 --- a/Jellyfin.Plugin.Template/Configuration/configPage.html +++ b/Jellyfin.Plugin.Template/Configuration/configPage.html @@ -51,7 +51,7 @@ ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) { document.querySelector('#Options').value = config.Options; document.querySelector('#AnInteger').value = config.AnInteger; - document.getElementById('TrueFalseSetting').checked = config.TrueFalseSetting; + document.querySelector('#TrueFalseSetting').checked = config.TrueFalseSetting; document.querySelector('#AString').value = config.AString; Dashboard.hideLoadingMsg(); }); From fa2f1fc1d6d516a6d740fca9adb9eb9475738fc4 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Thu, 3 Dec 2020 07:18:19 -0700 Subject: [PATCH 2/2] Update Jellyfin.Plugin.Template/Configuration/configPage.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Odd Stråbø --- Jellyfin.Plugin.Template/Configuration/configPage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Template/Configuration/configPage.html b/Jellyfin.Plugin.Template/Configuration/configPage.html index 2c8c9c6..640a863 100644 --- a/Jellyfin.Plugin.Template/Configuration/configPage.html +++ b/Jellyfin.Plugin.Template/Configuration/configPage.html @@ -63,7 +63,7 @@ ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) { config.Options = document.querySelector('#Options').value; config.AnInteger = document.querySelector('#AnInteger').value; - config.TrueFalseSetting = document.getElementById('TrueFalseSetting').checked; + config.TrueFalseSetting = document.querySelector('#TrueFalseSetting').checked; config.AString = document.querySelector('#AString').value; ApiClient.updatePluginConfiguration(TemplateConfig.pluginUniqueId, config).then(function (result) { Dashboard.processPluginConfigurationUpdateResult(result);