|
|
@ -234,22 +234,20 @@ $.fn.datatables_extended = function(settings){
|
|
|
|
$('.dataTables_wrapper [data-click-event=toggle-selected]').click(function () {
|
|
|
|
$('.dataTables_wrapper [data-click-event=toggle-selected]').click(function () {
|
|
|
|
var button = this,
|
|
|
|
var button = this,
|
|
|
|
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
|
|
|
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
|
|
|
if(!$(button).hasClass('disabled')){
|
|
|
|
|
|
|
|
if ($(button).html() == 'Select All') {
|
|
|
|
if ($(button).html() == 'Select All') {
|
|
|
|
|
|
|
|
$(button).html('Deselect All');
|
|
|
|
|
|
|
|
$('.bulk-action-row').removeClass('hidden');
|
|
|
|
thisTable.api().rows().every(function () {
|
|
|
|
thisTable.api().rows().every(function () {
|
|
|
|
$(this.node()).addClass(rowSelectedClass);
|
|
|
|
$(this.node()).addClass(rowSelectedClass);
|
|
|
|
$(button).html('Deselect All');
|
|
|
|
|
|
|
|
$('.bulk-action-row').addClass('hidden');
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ($(button).html() == 'Deselect All') {
|
|
|
|
else if ($(button).html() == 'Deselect All') {
|
|
|
|
|
|
|
|
$('.bulk-action-row').addClass('hidden');
|
|
|
|
|
|
|
|
$(button).html('Select All');
|
|
|
|
thisTable.api().rows().every(function () {
|
|
|
|
thisTable.api().rows().every(function () {
|
|
|
|
$(this.node()).removeClass(rowSelectedClass);
|
|
|
|
$(this.node()).removeClass(rowSelectedClass);
|
|
|
|
$(button).html('Select All');
|
|
|
|
|
|
|
|
$('.bulk-action-row').removeClass('hidden');
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|