kamidu 7 years ago
parent 57a52ffa4a
commit b56c926203

@ -239,12 +239,14 @@ $.fn.datatables_extended = function(settings){
thisTable.api().rows().every(function () {
$(this.node()).addClass(rowSelectedClass);
$(button).html('Deselect All');
$('.bulk-action-row').addClass('hidden');
});
}
else if($(button).html() == 'Deselect All') {
thisTable.api().rows().every(function () {
$(this.node()).removeClass(rowSelectedClass);
$(button).html('Select All');
$('.bulk-action-row').removeClass('hidden');
});
}
}

@ -306,12 +306,14 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
thisTable.api().rows().every(function () {
$(this.node()).addClass(rowSelectedClass);
$(button).html('Deselect All');
$('.bulk-action-row').addClass('hidden');
});
}
else if ($(button).html() == 'Deselect All') {
thisTable.api().rows().every(function () {
$(this.node()).removeClass(rowSelectedClass);
$(button).html('Select All');
$('.bulk-action-row').removeClass('hidden');
});
}
}

Loading…
Cancel
Save