Merge pull request #19 from jellyfin/jquery

remove jquery
This commit is contained in:
dkanada 2020-07-05 00:43:22 +09:00 committed by GitHub
commit 2ba7427a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@
ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) {
$('#Options').val(config.Options).change();
$('#AnInteger').val(config.AnInteger).change();
$('#TrueFalseSetting').checked = config.TrueFalseSetting;
document.getElementById('TrueFalseSetting').checked = config.TrueFalseSetting;
$('#AString').val(config.AString).change();
Dashboard.hideLoadingMsg();
});
@ -61,7 +61,7 @@
ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) {
config.Options = $('#Options').val();
config.AnInteger = $('#AnInteger').val();
config.TrueFalseSetting = $('#TrueFalseSetting').checked;
config.TrueFalseSetting = document.getElementById('TrueFalseSetting').checked;
config.AString = $('#AString').val();
ApiClient.updatePluginConfiguration(TemplateConfig.pluginUniqueId, config).then(function (result) {
Dashboard.processPluginConfigurationUpdateResult(result);