From 515d892f6e9ff13e7bbcfb413bec83ab8669dacb Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Fri, 18 Sep 2015 16:11:49 -0400 Subject: [PATCH] Fixed small table widget ctrl-selection bug --- airtime_mvc/public/js/airtime/widgets/table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/widgets/table.js b/airtime_mvc/public/js/airtime/widgets/table.js index f2ffb4f54..b127abb41 100644 --- a/airtime_mvc/public/js/airtime/widgets/table.js +++ b/airtime_mvc/public/js/airtime/widgets/table.js @@ -257,7 +257,8 @@ var AIRTIME = (function(AIRTIME) { console.log("clicked row not detected as already selected"); } - if (foundAtIdx >= 0 && self._selectedRows.length > 1) { + //If the clicked row is already selected, deselect it. + if (foundAtIdx >= 0 && self._selectedRows.length >= 1) { self._selectedRows.splice(foundAtIdx, 1); $nRow.removeClass('selected'); $nRow.find('input.airtime_table_checkbox').attr('checked', false);