aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/gn_editor_commit.html
diff options
context:
space:
mode:
authorAlexander Kabui2024-09-16 15:27:12 +0300
committerGitHub2024-09-16 15:27:12 +0300
commit1ee4e945dbc3b0fd8788341667f2e39f776cc3c4 (patch)
tree314fa913381eca6cf40a02cec2500192e5e891e2 /gn2/wqflask/templates/gn_editor_commit.html
parente823d509b2e2485ab65b1e26a7d4c40042714c25 (diff)
parent304f3f35bfea61bdf9e6be2286b8f6e83b71edb6 (diff)
downloadgenenetwork2-1ee4e945dbc3b0fd8788341667f2e39f776cc3c4.tar.gz
Merge pull request #869 from genenetwork/features/Integrate-editing-doc-files
Integrate gn editor for files.
Diffstat (limited to 'gn2/wqflask/templates/gn_editor_commit.html')
-rw-r--r--gn2/wqflask/templates/gn_editor_commit.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/gn2/wqflask/templates/gn_editor_commit.html b/gn2/wqflask/templates/gn_editor_commit.html
index 84ebd818..2eb3e60c 100644
--- a/gn2/wqflask/templates/gn_editor_commit.html
+++ b/gn2/wqflask/templates/gn_editor_commit.html
@@ -23,15 +23,17 @@
<br>
<br>
<div class="row">
- <button id="btn-commit" class="btn btn-primary col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Commit</button>
- <button id="btn-diff" class="btn col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Show Diff</button>
+ <button id="btn-commit"
+ class="btn btn-primary col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Commit</button>
+ <button id="btn-diff"
+ class="btn col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Show Diff</button>
</div>
<br>
<div id="diff_page"></div>
</div>
</section>
{% block js %}
- <script>
+<script>
htmx.on("#btn-commit", "click", function(event){
let msg = htmx.find("#commit-message").value.trim()
if (msg != ""){
@@ -51,5 +53,5 @@
}),
);
})
- </script>
+</script>
{% endblock %}