diff options
author | zsloan | 2022-05-17 18:20:28 +0000 |
---|---|---|
committer | zsloan | 2022-05-17 18:20:28 +0000 |
commit | f0b40c40f275383609b2aaaf66a718daf138353a (patch) | |
tree | d924f0ad4f5c36a47e729185a226f2f271f130f3 /wqflask | |
parent | e1a859f1800e162f120fca207cffd0a4092b11c2 (diff) | |
download | genenetwork2-f0b40c40f275383609b2aaaf66a718daf138353a.tar.gz |
Make collection page tools open in new tab/window
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/collections/view.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index e11ffbbd..39df161d 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -19,7 +19,7 @@ <h3>This collection has {{ '{}'.format(numify(trait_obs|count, "record", "records")) }}</h3> <div class="tool-button-container"> - <form id="collection_form" action="/delete" method="post"> + <form id="collection_form" action="/delete" method="post" target="_blank"> <input type="hidden" name="uc_id" id="uc_id" value="{{ uc.id }}" /> <input type="hidden" name="collection_name" id="collection_name" value="{{ uc.name }}" /> <input type="hidden" name="tool_used" value="" /> @@ -242,6 +242,7 @@ submit_special = function(url) { $("#collection_form").attr("action", url); + e.stopImmediatePropagation(); return $("#collection_form").submit(); }; |