restricting search properly for select all/none.

This commit is contained in:
Naomi Aro 2013-08-30 02:31:23 -04:00
parent ad531f9512
commit de225c589f

View file

@ -91,8 +91,9 @@ var AIRTIME = (function(AIRTIME) {
selectedLogItems = {}; selectedLogItems = {};
} }
function selectCurrentPage() { function selectCurrentPage(e) {
var $inputs = $historyContentDiv.find(".his_checkbox").find("input"), var $ctx = $(e.currentTarget).parents("div.dataTables_wrapper"),
$inputs = $ctx.find(".his_checkbox").find("input"),
$tr, $tr,
$input; $input;
@ -104,8 +105,9 @@ var AIRTIME = (function(AIRTIME) {
}); });
} }
function deselectCurrentPage() { function deselectCurrentPage(e) {
var $inputs = $historyContentDiv.find(".his_checkbox").find("input"), var $ctx = $(e.currentTarget).parents("div.dataTables_wrapper"),
$inputs = $ctx.find(".his_checkbox").find("input"),
$tr, $tr,
$input; $input;
@ -430,7 +432,7 @@ var AIRTIME = (function(AIRTIME) {
}, },
always: function() { always: function() {
inShowsTab = false; inShowsTab = false;
selectedLogItems = {}; emptySelectedLogItems();
} }
}, },
{ {
@ -443,7 +445,7 @@ var AIRTIME = (function(AIRTIME) {
}, },
always: function() { always: function() {
inShowsTab = false; inShowsTab = false;
selectedLogItems = {}; emptySelectedLogItems();
} }
}, },
{ {
@ -457,7 +459,7 @@ var AIRTIME = (function(AIRTIME) {
always: function() { always: function() {
inShowsTab = true; inShowsTab = true;
showSummaryList(); showSummaryList();
selectedLogItems = {}; emptySelectedLogItems();
} }
} }
]; ];