aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/gn_editor_settings.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/gn_editor_settings.html')
-rw-r--r--gn2/wqflask/templates/gn_editor_settings.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn2/wqflask/templates/gn_editor_settings.html b/gn2/wqflask/templates/gn_editor_settings.html
index 62ab4f6a..a87e3dc8 100644
--- a/gn2/wqflask/templates/gn_editor_settings.html
+++ b/gn2/wqflask/templates/gn_editor_settings.html
@@ -100,7 +100,7 @@
$('#fontSizeValue').text(fontSize);
});
- document.querySelector("#settingBtn").addEventListener("click", function () {
+ htmx.on("#settingBtn", "click", function () {
var formData = {
theme: `ace/theme/${$('input[name="theme"]:checked').val()}`,
fontSize: parseInt($("#fontSizeRange").val()),
@@ -117,6 +117,6 @@
detail: {action: 'didInitialize', payload: formData},
}),
);
- });
+ })
</script>
{% endblock %}