Lines 59-70
var dataTablesDefaults = {
Link Here
|
59 |
var tableId = settings.nTable.id |
59 |
var tableId = settings.nTable.id |
60 |
var state = settings.oLoadedState; |
60 |
var state = settings.oLoadedState; |
61 |
state && toggledClearFilter(state.search.search, tableId); |
61 |
state && toggledClearFilter(state.search.search, tableId); |
62 |
// When the DataTables search function is triggered, |
|
|
63 |
// enable or disable the "Clear filter" button based on |
64 |
// the presence of a search string |
65 |
$(this).on( 'search.dt', function ( e, settings ) { |
66 |
toggledClearFilter(settings.oPreviousSearch.sSearch, tableId); |
67 |
}); |
68 |
|
62 |
|
69 |
if (settings.ajax) { |
63 |
if (settings.ajax) { |
70 |
let table_node = $("#" + tableId); |
64 |
let table_node = $("#" + tableId); |
Lines 1001-1009
function _dt_add_delay(table_dt, table_node, delay_ms) {
Link Here
|
1001 |
_dt_add_filters(this, table_dt, filters_options); |
995 |
_dt_add_filters(this, table_dt, filters_options); |
1002 |
} |
996 |
} |
1003 |
|
997 |
|
1004 |
table.DataTable().on("column-visibility.dt", function(){_dt_on_visibility(add_filters, table, table_dt);}) |
998 |
table_dt.on("column-visibility.dt", function(){_dt_on_visibility(add_filters, table, table_dt);}) |
1005 |
.columns( hidden_ids ).visible( false ); |
999 |
.columns( hidden_ids ).visible( false ); |
1006 |
|
1000 |
|
|
|
1001 |
table_dt.on( 'search.dt', function ( e, settings ) { |
1002 |
// When the DataTables search function is triggered, |
1003 |
// enable or disable the "Clear filter" button based on |
1004 |
// the presence of a search string |
1005 |
toggledClearFilter(settings.oPreviousSearch.sSearch, settings.nTable.id); |
1006 |
}); |
1007 |
|
1007 |
return table; |
1008 |
return table; |
1008 |
}; |
1009 |
}; |
1009 |
|
1010 |
|
1010 |
- |
|
|