diff options
author | Frederick Muriuki Muriithi | 2021-09-20 09:20:44 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-09-20 09:20:44 +0300 |
commit | f1876d4d8da5c973375fc398fedaa12825a0b780 (patch) | |
tree | dcf1fe3c2b0879a3cbebb63dba006a2f5f0ef062 | |
parent | cfe0de277021c41eedeb65ec7f1560ac6d67ad0a (diff) | |
download | genenetwork2-f1876d4d8da5c973375fc398fedaa12825a0b780.tar.gz |
Prevent the default submit action
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi
* Prevent the default submit action.
-rw-r--r-- | wqflask/wqflask/templates/collections/view.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index 0578460d..51b96e10 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -257,6 +257,10 @@ make_default(); }); + $("#heatmaps_form").submit(function(e) { + e.preventDefault(); + }); + $("#clustered-heatmap").on("click", function() { heatmap_url = $(this).attr("data-url") console.log("heatmap url:", heatmap_url) |