aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2023-02-23 21:51:35 +0000
committerzsloan2023-02-23 21:52:50 +0000
commit98d04dd71d99a6e65fee9b83afffc52e27b67e8c (patch)
treefeb161eafa8b1fe8fa038e99391afd9878680e7a
parentf99939a6b1e8d64e0427b326053f468d13d54f9e (diff)
downloadgenenetwork2-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)
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait.js4
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();