diff options
author | Alexander_Kabui | 2024-09-16 15:19:07 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-16 15:19:07 +0300 |
commit | 304f3f35bfea61bdf9e6be2286b8f6e83b71edb6 (patch) | |
tree | 84fbb6a0d85ff968f68da9303561b78dda0b9ba4 /gn2/wqflask/templates/gn_editor_commit.html | |
parent | 563c2db81f79bfa4cb00483e8a9b23c1db02ef6d (diff) | |
download | genenetwork2-304f3f35bfea61bdf9e6be2286b8f6e83b71edb6.tar.gz |
Refactor: run dlint on html files.
Diffstat (limited to 'gn2/wqflask/templates/gn_editor_commit.html')
-rw-r--r-- | gn2/wqflask/templates/gn_editor_commit.html | 10 |
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 %} |