Lines 665-670
function _dt_buttons(params){
Link Here
|
665 |
let included_ids = params.included_ids || []; |
665 |
let included_ids = params.included_ids || []; |
666 |
let settings = params.settings || {}; |
666 |
let settings = params.settings || {}; |
667 |
let table_settings = params.table_settings; |
667 |
let table_settings = params.table_settings; |
|
|
668 |
let hasFilters = params.hasFilters; |
668 |
|
669 |
|
669 |
var exportColumns = ":visible:not(.noExport)"; |
670 |
var exportColumns = ":visible:not(.noExport)"; |
670 |
if( settings.hasOwnProperty("exportColumns") ){ |
671 |
if( settings.hasOwnProperty("exportColumns") ){ |
Lines 721-739
function _dt_buttons(params){
Link Here
|
721 |
]; |
722 |
]; |
722 |
|
723 |
|
723 |
let buttons = []; |
724 |
let buttons = []; |
724 |
buttons.push( |
725 |
if(hasFilters){ |
725 |
{ |
726 |
buttons.push( |
726 |
fade: 100, |
727 |
{ |
727 |
className: "dt_button_clear_filter", |
728 |
fade: 100, |
728 |
titleAttr: __("Clear filter"), |
729 |
className: "dt_button_clear_filter", |
729 |
enabled: false, |
730 |
titleAttr: __("Clear filter"), |
730 |
text: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + __("Clear filter") + '</span>', |
731 |
enabled: false, |
731 |
action: function ( e, dt, node, config ) { |
732 |
text: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + __("Clear filter") + '</span>', |
732 |
dt.search( "" ).draw("page"); |
733 |
action: function ( e, dt, node, config ) { |
733 |
node.addClass("disabled"); |
734 |
dt.search( "" ).draw("page"); |
|
|
735 |
node.addClass("disabled"); |
736 |
} |
734 |
} |
737 |
} |
735 |
} |
738 |
); |
736 |
); |
739 |
} |
737 |
|
740 |
|
738 |
if( included_ids.length > 0 ){ |
741 |
if( included_ids.length > 0 ){ |
739 |
buttons.push( |
742 |
buttons.push( |