From 2f32f740bd26080b2557a35da5bf2777a4a83470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Csord=C3=A1s?= Date: Wed, 21 Mar 2018 14:10:23 +0100 Subject: [PATCH] Reset diff type filter items on change We should reset the filter tooltip items of the diff type filter on filter change. --- www/scripts/codecheckerviewer/filter/DiffTypeFilter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/scripts/codecheckerviewer/filter/DiffTypeFilter.js b/www/scripts/codecheckerviewer/filter/DiffTypeFilter.js index 97e6bc2b7a..be6fb75929 100644 --- a/www/scripts/codecheckerviewer/filter/DiffTypeFilter.js +++ b/www/scripts/codecheckerviewer/filter/DiffTypeFilter.js @@ -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; });