mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Fix nextmatch category, filter & filter2 selectboxes did not listen for custom change return value to cancel server call
This commit is contained in:
parent
cb8206c4c2
commit
768b6ae861
@ -2715,13 +2715,6 @@ var et2_nextmatch_header_bar = (function(){ "use strict"; return et2_DOMWidget.e
|
||||
|
||||
if (this.nextmatch.options.settings[name+"_onchange"])
|
||||
{
|
||||
// Make sure to get the new value for filtering
|
||||
input.change(this.nextmatch, function(event) {
|
||||
var set = {};
|
||||
set[name] = select.getValue();
|
||||
event.data.applyFilters(set);
|
||||
});
|
||||
|
||||
// Get the onchange function string
|
||||
var onchange = this.nextmatch.options.settings[name+"_onchange"];
|
||||
|
||||
@ -2733,7 +2726,8 @@ var et2_nextmatch_header_bar = (function(){ "use strict"; return et2_DOMWidget.e
|
||||
}
|
||||
|
||||
// Connect it to the onchange event of the input element - may submit
|
||||
input.change(this.nextmatch, et2_compileLegacyJS(onchange, this.nextmatch, select.getInputNode()));
|
||||
select.change = et2_compileLegacyJS(onchange, this.nextmatch, select.getInputNode());
|
||||
this._bindHeaderInput(select);
|
||||
}
|
||||
else // default request changed rows with new filters, previous this.form.submit()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user