diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-09 10:43:12 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-09 10:43:34 +0200 |
commit | 46217207aa4de2c85174d22cc7c8d233474d10be (patch) | |
tree | 67ba6934c5d13f87893fd6ce29f28b0063b1a7be /server/sonar-web/src/main/js/components | |
parent | 250faa1bb66176cd8833ee248976e64c5b54977d (diff) | |
download | sonarqube-46217207aa4de2c85174d22cc7c8d233474d10be.tar.gz sonarqube-46217207aa4de2c85174d22cc7c8d233474d10be.zip |
SONAR-6404 Force reload of results when submit a search form on the rules page
Diffstat (limited to 'server/sonar-web/src/main/js/components')
-rw-r--r-- | server/sonar-web/src/main/js/components/navigator/models/state.js | 7 |
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); } }, |