From 8de55428034ce4ebee0e9de557f93bf119f95741 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 24 Jan 2017 08:41:05 -0700 Subject: [PATCH] Fix nextmatch category, filter & filter2 selectboxes did not listen for custom change return value to cancel server call --- api/js/etemplate/et2_extension_nextmatch.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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() {