aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/gn_editor.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/gn_editor.html')
-rw-r--r--gn2/wqflask/templates/gn_editor.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/gn2/wqflask/templates/gn_editor.html b/gn2/wqflask/templates/gn_editor.html
index d89aaf0a..14a41caa 100644
--- a/gn2/wqflask/templates/gn_editor.html
+++ b/gn2/wqflask/templates/gn_editor.html
@@ -29,10 +29,10 @@
hx-get="/editor/commit"
hx-target="#output"
hx-trigger="click"
- hx-swap="innerHTML">Commit</a>
+ hx-swap="innerHTML">Save</a>
</li>
<li>
- <a hx-trigger="click" id="diffBtn" hx-swap="innerHTML">Diff</a>
+ <a hx-trigger="click" id="diffBtn" hx-swap="innerHTML">Show Diff</a>
</li>
<li>
<a href="#"
@@ -228,6 +228,9 @@
editor.container.style.resize = "horizontal";
editor.getSession().on("change", function(e){
updatePreview()
+ })
+ editor.on("click", function(e){
+ updatePreview()
})
editor.setValue(data, -1);
}