Skip to content

Commit

Permalink
Merge pull request #1473 from csordasmarton/reset-diff-type-filter-items
Browse files Browse the repository at this point in the history
Reset diff type filter items on change
  • Loading branch information
gyorb authored Mar 21, 2018
2 parents 798bed5 + 2f32f74 commit af3447b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion www/scripts/codecheckerviewer/filter/DiffTypeFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,18 @@ function (declare, Deferred, dom, all, Standby, ContentPane, SelectFilter,

this.currentDiffType = defaultDiffType;
this.select(this.stateEncoder(this.currentDiffType));
this._filterTooltip.reset();
this.updateReportFilter(this.currentDiffType);
},

notify : function () {
var that = this;
this._filterTooltip.reset();

var that = this;
this._standBy.show();
this.getItems().then(function (items) {
that._filterTooltip.reset(items);

var selectedItems = items.filter(function (item) {
return that.currentDiffType === item.id;
});
Expand Down

0 comments on commit af3447b

Please sign in to comment.