mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Call applyFilters() function instead of setting directly, which skipped change detection.
Fixes selection not cleared when applying a favorite.
This commit is contained in:
parent
21bcc81b21
commit
8a36e40b10
@ -387,6 +387,14 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
||||
* @param _set filter(s) to set eg. { filter: '' } to reset filter in NM header
|
||||
*/
|
||||
applyFilters: function(_set) {
|
||||
var changed = false;
|
||||
|
||||
// Cleared explicitly
|
||||
if(typeof _set != 'undefined' && jQuery.isEmptyObject(_set))
|
||||
{
|
||||
changed = true;
|
||||
this.activeFilters = {};
|
||||
}
|
||||
if(typeof this.activeFilters == "undefined")
|
||||
{
|
||||
this.activeFilters = {col_filter: {}};
|
||||
@ -396,7 +404,6 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
||||
this.activeFilters.col_filter = {};
|
||||
}
|
||||
|
||||
var changed = false;
|
||||
if (typeof _set == 'object')
|
||||
{
|
||||
for(var s in _set)
|
||||
|
@ -285,8 +285,7 @@ var AppJS = Class.extend(
|
||||
if(state.state && state.state.search) state.state.search = unescape(state.state.search);
|
||||
|
||||
// Apply
|
||||
_widget.activeFilters = state.state || state.filter || {};
|
||||
_widget.applyFilters();
|
||||
_widget.applyFilters(state.state || state.filter || {});
|
||||
nextmatched = true;
|
||||
}, this, et2_nextmatch);
|
||||
if(nextmatched) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user