Fix run filters init
Init run filter items based on constructor after filter items are
created.
@@ -151,12 +151,6 @@ function (declare, lang, Deferred, domClass, dom, domStyle, topic, Button,
this.register(this._runBaseLineFilter);
baselineFilterToggle.addChild(this._runBaseLineFilter);
- // Select initial base line values which come from the constructor.
- if (this.baseline)
- this.baseline.forEach(function (runName) {
- that._runBaseLineFilter.select(runName);
- });
-
//--- Run history tags filter ---//
this._runHistoryTagFilter = new RunHistoryTagFilter({
@@ -213,12 +207,6 @@ function (declare, lang, Deferred, domClass, dom, domStyle, topic, Button,
this.register(this._runNewCheckFilter);
this._newCheckFilterToggle.addChild(this._runNewCheckFilter);
- // Select initial new check values which come from the constructor.
- if (this.newcheck)
- this.newcheck.forEach(function (runName) {
- that._runNewCheckFilter.select(runName);
- });
-
//--- Run history tags filter for newcheck ---//
this._runHistoryTagNewCheckFilter = new RunHistoryTagFilter({
@@ -587,6 +575,18 @@ function (declare, lang, Deferred, domClass, dom, domStyle, topic, Button,
this.register(this._checkerMessageFilter);
this.addChild(this._checkerMessageFilter);
+ // Select initial base line and new check values which come from the
+ // constructor.
+ if (this.baseline)
+ this.baseline.forEach(function (runName) {
+ that._runBaseLineFilter.select(runName);
+ });
+
+ if (this.newcheck)
+ this.newcheck.forEach(function (runName) {
+ that._runNewCheckFilter.select(runName);
+ });
+
// Initalize only the current tab.
if (this.parent.tab === queryParams.tab)
this.initAll(queryParams);
