mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
Added INITIAL FILTER to LA akzeptieren
Initial filter is: erteilte LA. Now these rows are presented to the user when loading the page.
This commit is contained in:
@@ -152,6 +152,19 @@ $this->load->view(
|
||||
return parseFloat(rowValue) == headerValue;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
// Custom filters
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
// Filters erteilte initially
|
||||
function func_initialFilter(){
|
||||
return [
|
||||
{field: 'bestellt', type: '!=', value: null}, // bestellt
|
||||
{field: 'erteilt', type: '!=', value: null}, // AND erteilt
|
||||
{field: 'akzeptiert', type: '=', value: null} // AND NOT akzeptiert
|
||||
]
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
// Tabulator table format functions
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -327,6 +327,7 @@ $filterWidgetArray = array(
|
||||
selectableCheck: function(row){
|
||||
return func_selectableCheck(row);
|
||||
},
|
||||
initialFilter: func_initialFilter(),
|
||||
footerElement: func_footerElement(),
|
||||
rowUpdated:function(row){
|
||||
func_rowUpdated(row);
|
||||
|
||||
Reference in New Issue
Block a user