Make sure activeFilter gets set during init

This commit is contained in:
Nathan Gray 2013-05-06 20:58:59 +00:00
parent 43d0128fb6
commit c5c4d92d09

View File

@ -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;
}