From c5c4d92d09e97b1c9bd1c1a8953382b60b136e2d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 6 May 2013 20:58:59 +0000 Subject: [PATCH] Make sure activeFilter gets set during init --- etemplate/js/et2_extension_nextmatch.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 52bc764452..1fea55356d 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -110,6 +110,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], legacyOptions: ["template","hide_header","header_left","header_right"], createNamespace: true, + activeFilters: {col_filter:{}}, columns: [], @@ -165,8 +166,6 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], // instance, which can first be created once we have the columns this.controller = null; this.rowProvider = null; - - this.activeFilters = {}; }, /** @@ -1968,6 +1967,9 @@ var et2_nextmatch_filterheader = et2_selectbox.extend([et2_INextmatchHeader, et2 { this.set_value(this.nextmatch.options.settings.col_filter[this.id]); + // Make sure it's set in the nextmatch + _nextmatch.activeFilters.col_filter[this.id] = this.getValue(); + // Tell framework to ignore, or it will reset it to ''/empty when it does loadingFinished() this.attributes.value.ignore = true; }