aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components')
-rw-r--r--server/sonar-web/src/main/js/components/navigator/models/state.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/navigator/models/state.js b/server/sonar-web/src/main/js/components/navigator/models/state.js
index c9e4fcf6b85..fe53b18cf0e 100644
--- a/server/sonar-web/src/main/js/components/navigator/models/state.js
+++ b/server/sonar-web/src/main/js/components/navigator/models/state.js
@@ -52,11 +52,12 @@ define(function () {
return equal;
},
- updateFilter: function (obj) {
+ updateFilter: function (obj, options) {
var oldQuery = this.get('query'),
- query = _.extend({}, oldQuery, obj);
+ query = _.extend({}, oldQuery, obj),
+ opts = _.defaults(options || {}, { force: false });
query = this.clearQuery(query);
- if (!this._areQueriesEqual(oldQuery, query)) {
+ if (opts.force || !this._areQueriesEqual(oldQuery, query)) {
this.setQuery(query);
}
},