diff options
author | Alexander_Kabui | 2024-09-18 15:02:33 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-18 15:02:33 +0300 |
commit | 6ec37dbdc2d1304f96faf0b51e041faa56470a5a (patch) | |
tree | e4c1739d29e4fd2b0dcd7505b1926ba5a92a7e66 /gn2 | |
parent | 37fc1e0c473822ee208d59840d9785a6c03e4d30 (diff) | |
download | genenetwork2-6ec37dbdc2d1304f96faf0b51e041faa56470a5a.tar.gz |
Update editor preview on mouse click over the editor.
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/templates/gn_editor.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/gn_editor.html b/gn2/wqflask/templates/gn_editor.html index 6f4685ac..14a41caa 100644 --- a/gn2/wqflask/templates/gn_editor.html +++ b/gn2/wqflask/templates/gn_editor.html @@ -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); } |