Make sure value gets set before applying filters, or it won't stay

This commit is contained in:
Nathan Gray 2012-05-08 18:02:56 +00:00
parent 79d3e78f30
commit efd5bacc7a
2 changed files with 4 additions and 1 deletions

View File

@ -1454,6 +1454,9 @@ var et2_nextmatch_filterheader = et2_selectbox.extend(et2_INextmatchHeader, {
{
delete (event.data.nextmatch.activeFilters["col_filter"][event.data.id]);
}
// Set value so it's there for response (otherwise it gets cleared if options are updated)
event.data.set_value(event.data.input.val());
event.data.nextmatch.applyFilters();
});

View File

@ -363,7 +363,6 @@ var et2_selectbox = et2_inputWidget.extend({
return this.set_multi_value(_value);
}
jQuery("option",this.input).attr("selected", false);
this.value = _value;
if(typeof _value == "array")
{
for(var i = 0; i < _value.length; i++)
@ -390,6 +389,7 @@ var et2_selectbox = et2_inputWidget.extend({
this.egw().debug("warning", "Tried to set value that isn't an option", this, _value);
}
}
this.value = _value;
},
set_multi_value: function(_value) {