|
|
@ -220,23 +220,27 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getAdvanceToolBar() {
|
|
|
|
function getAdvanceToolBar() {
|
|
|
|
|
|
|
|
var selectableBtnHtml = "";
|
|
|
|
if (table.hasClass('sorting-enabled')) {
|
|
|
|
if (table.hasClass('sorting-enabled')) {
|
|
|
|
return '<ul class="nav nav-pills navbar-right remove-margin" role="tablist">' +
|
|
|
|
if(!table.hasClass('un-selectable')){
|
|
|
|
'<li><button data-click-event="toggle-selectable" class="btn btn-default btn-primary select-enable-btn">Select</li>' +
|
|
|
|
selectableBtnHtml = '<li><button data-click-event="toggle-selectable" class="btn btn-default btn-primary select-enable-btn">Select</li>' +
|
|
|
|
'<li><button data-click-event="toggle-selected" id="dt-select-all" class="btn btn-default btn-primary disabled">Select All</li>' +
|
|
|
|
'<li><button data-click-event="toggle-selected" id="dt-select-all" class="btn btn-default btn-primary disabled">Select All</li>';
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="grid" class="btn btn-default"><i class="fw fw-grid"></i></button></li>' +
|
|
|
|
}
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="list" class="btn btn-default"><i class="fw fw-list"></i></button></li>' +
|
|
|
|
return '<ul class="nav nav-pills navbar-right remove-margin" role="tablist">' + selectableBtnHtml +
|
|
|
|
'<li><button class="btn btn-default" data-toggle="dropdown"><i class="fw fw-sort"></i></button>' + dropdownmenu[0].outerHTML + '</li>' +
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="grid" class="btn btn-default"><i class="fw fw-grid"></i></button></li>' +
|
|
|
|
'</ul>'
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="list" class="btn btn-default"><i class="fw fw-list"></i></button></li>' +
|
|
|
|
|
|
|
|
'<li><button class="btn btn-default" data-toggle="dropdown"><i class="fw fw-sort"></i></button>' + dropdownmenu[0].outerHTML + '</li>' +
|
|
|
|
|
|
|
|
'</ul>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return '<ul class="nav nav-pills navbar-right remove-margin" role="tablist">' +
|
|
|
|
if(!table.hasClass('un-selectable')){
|
|
|
|
'<li><button data-click-event="toggle-selectable" class="btn btn-default btn-primary select-enable-btn">Select</li>' +
|
|
|
|
selectableBtnHtml = '<li><button data-click-event="toggle-selectable" class="btn btn-default btn-primary select-enable-btn">Select</li>' +
|
|
|
|
'<li><button data-click-event="toggle-selected" id="dt-select-all" class="btn btn-default btn-primary disabled">Select All</li>' +
|
|
|
|
'<li><button data-click-event="toggle-selected" id="dt-select-all" class="btn btn-default btn-primary disabled">Select All</li>';
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="grid" class="btn btn-default"><i class="fw fw-grid"></i></button></li>' +
|
|
|
|
}
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="list" class="btn btn-default"><i class="fw fw-list"></i></button></li>' +
|
|
|
|
return '<ul class="nav nav-pills navbar-right remove-margin" role="tablist">' + selectableBtnHtml +
|
|
|
|
'</ul>'
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="grid" class="btn btn-default"><i class="fw fw-grid"></i></button></li>' +
|
|
|
|
|
|
|
|
'<li><button data-click-event="toggle-list-view" data-view="list" class="btn btn-default"><i class="fw fw-list"></i></button></li>' +
|
|
|
|
|
|
|
|
'</ul>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -303,6 +307,7 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
|
|
|
|
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
|
|
|
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
|
|
|
if (!$(button).hasClass('disabled')) {
|
|
|
|
if (!$(button).hasClass('disabled')) {
|
|
|
|
if ($(button).html() == 'Select All') {
|
|
|
|
if ($(button).html() == 'Select 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');
|
|
|
|
$(button).html('Deselect All');
|
|
|
|