diff options
author | zsloan | 2023-02-23 21:51:35 +0000 |
---|---|---|
committer | zsloan | 2023-02-23 21:52:50 +0000 |
commit | 98d04dd71d99a6e65fee9b83afffc52e27b67e8c (patch) | |
tree | feb161eafa8b1fe8fa038e99391afd9878680e7a /wqflask | |
parent | f99939a6b1e8d64e0427b326053f468d13d54f9e (diff) | |
download | genenetwork2-98d04dd71d99a6e65fee9b83afffc52e27b67e8c.tar.gz |
Uncheck/unselect rows when reseting trait page table
For some reason DataTables was sorting checked rows to the bottom when redrawing the table with the Reset button, so this is the only solution I could come up with (since I don't know the actual reason it was doing that)
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 6d412ab0..a2a5c67d 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -873,6 +873,10 @@ resetSamplesTable = function() { } }; $('.reset').click(function() { + $('.selected').each(function() { + $(this).removeClass('selected'); + $(this).find('.edit_sample_checkbox').prop("checked", false); + }) resetSamplesTable(); $('input[name="transform"]').val(""); editDataChange(); |