From 80fba7544b4816c94b0675d7b3f9b8821bf224e3 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 8 Sep 2022 19:51:47 +0000 Subject: Fix getCheckedRows so that it only selects checkbox input elements --- wqflask/wqflask/static/new/javascript/table_functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/static/new/javascript/table_functions.js b/wqflask/wqflask/static/new/javascript/table_functions.js index ea2cf60c..62888cd9 100644 --- a/wqflask/wqflask/static/new/javascript/table_functions.js +++ b/wqflask/wqflask/static/new/javascript/table_functions.js @@ -17,7 +17,7 @@ recheckRows = function(theTable, checkedRows){ getCheckedRows = function(tableId){ let checkedRows = [] - $("#" + tableId + " input").each(function(index){ + $("#" + tableId + " input.checkbox").each(function(index){ if ($(this).prop("checked") == true){ checkedRows.push(index); } -- cgit v1.2.3