mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-15 19:19:28 +00:00
Added INITIAL FILTER to LA bestellen
Initial filter is: no dummies, neu or geändert. Now these rows are presented to the user when loading the page.
This commit is contained in:
@@ -178,6 +178,22 @@ $this->load->view(
|
||||
// Custom filters
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Filters neue AND geaenderte initially
|
||||
* NOTE: This is a workaround. The tabulators callback initialFilter is not used here because
|
||||
* it is processed before the callback tableBuilt, where the status is going to be built.
|
||||
* The callback dataLoaded is processed after tableBuild and provides the status.
|
||||
*/
|
||||
function func_dataLoaded(data, table){
|
||||
table.setFilter([
|
||||
{field: 'personalnummer', type: '>=', value: 0}, // not dummy lector AND
|
||||
[
|
||||
{field: 'status', type: '=', value: 'Neu'}, // neu OR
|
||||
{field: 'status', type: '=', value: 'Geändert'} // geaendert
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
// Filters geaenderte
|
||||
function filter_showChanged(data){
|
||||
|
||||
|
||||
@@ -369,7 +369,10 @@ $filterWidgetArray = array(
|
||||
},
|
||||
tableBuilt: function(){
|
||||
func_tableBuilt(this);
|
||||
}
|
||||
},
|
||||
dataLoaded: function(data){
|
||||
func_dataLoaded(data, this);
|
||||
},
|
||||
}', // tabulator properties
|
||||
'datasetRepFieldsDefs' => '{
|
||||
// column status is built dynamically in funcTableBuilt()
|
||||
|
||||
Reference in New Issue
Block a user