diff --git a/o2web/source/x_component_query_Query/Viewer.js b/o2web/source/x_component_query_Query/Viewer.js index 0f5877e77f333c4f168c435bc362db83055b74c4..ecc34c5037d9dfb19068a5b26c3ee6b37d2d77f0 100644 --- a/o2web/source/x_component_query_Query/Viewer.js +++ b/o2web/source/x_component_query_Query/Viewer.js @@ -796,6 +796,7 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({ this.createViewNode({"filterList": filterData}); }else{ + this.filterItems = []; this.createViewNode(); } } @@ -813,6 +814,11 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({ } }, loadCustomSearch: function(){ + if( this.lastFilterItems ){ + this.filterItems = this.lastFilterItems; + }else{ + this.filterItems = []; + } debugger; this.viewSearchIconNode.setStyle("display", "none"); this.viewSearchInputBoxNode.setStyle("display", "none"); @@ -1074,6 +1080,7 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({ if(this.setContentHeightFun)this.setContentHeightFun(); }.bind(this)); + this.lastFilterItems = this.filterItems; this.createViewNode({"filterList": this.json.filter ? this.json.filter.clone() : null}); } },