Merge pull request #43 from SenorSmartyPants/FixSave

Don't navigate to another page, display saved settings instead
This commit is contained in:
Cody Robibero 2022-08-13 14:45:52 -06:00 committed by GitHub
commit d3a60b5f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@
});
document.querySelector('#TemplateConfigForm')
.addEventListener('submit', function() {
.addEventListener('submit', function(e) {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) {
config.Options = document.querySelector('#Options').value;
@ -70,6 +70,7 @@
});
});
e.preventDefault();
return false;
});
</script>