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);