diff options
author | Alexander_Kabui | 2024-08-13 12:13:28 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 18:58:56 +0300 |
commit | 9d459f2ff78cdb0165427bea37803ee389659d8c (patch) | |
tree | ec3570e80be69f62b867ab18f1bf3c498d8a2b25 /gn2/wqflask/templates/gn_editor_settings.html | |
parent | a1990202cd1692ab718e3fa4ec44455e19fc1671 (diff) | |
download | genenetwork2-9d459f2ff78cdb0165427bea37803ee389659d8c.tar.gz |
Use htmx event handler.
Diffstat (limited to 'gn2/wqflask/templates/gn_editor_settings.html')
-rw-r--r-- | gn2/wqflask/templates/gn_editor_settings.html | 4 |
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 %} |