* Infolog/list: Fix favorits are not working with details/no detail filter

This commit is contained in:
Hadi Nategh 2015-04-01 12:38:05 +00:00
parent 02e525b95f
commit 3b0e72d98a
2 changed files with 11 additions and 1 deletions

View File

@ -405,6 +405,10 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput, et2_IPrin
applyFilters: function(_set) {
var changed = false;
// Avoid loops cause by change events
if(this.update_in_progress) return;
this.update_in_progress = true;
// Cleared explicitly
if(typeof _set != 'undefined' && jQuery.isEmptyObject(_set))
{
@ -496,6 +500,8 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput, et2_IPrin
// Trigger an update
this.controller.update(true);
this.update_in_progress = false;
},
/**

View File

@ -447,6 +447,7 @@ var et2_selectbox = et2_inputWidget.extend(
// No options set yet
this.set_select_options(this.options.select_options);
}
this._oldValue = this.value;
if(this.input !== null && (this.options.tags || this.options.search))
{
// Value must be a real Array, not an object
@ -499,8 +500,11 @@ var et2_selectbox = et2_inputWidget.extend(
return;
}
}
this.value = _value;
if(this.isAttached() && this._oldValue !== et2_no_init && this._oldValue !== _value)
{
this.input.change();
}
},
set_multi_value: function(_value) {