diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index ef3335810a..948e8ff658 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -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() {