diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-09 11:06:08 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-10-09 16:48:24 +0200 |
commit | 74af3d8161ca9a767d9b6a7a2bdc3f5d29bd5003 (patch) | |
tree | 9d39a5ce84de98f671ffd3c72b917e83c4303b73 /server | |
parent | 9dbf8d1d08b839d5bbdf85e77b7ba5982e1cb41d (diff) | |
download | sonarqube-74af3d8161ca9a767d9b6a7a2bdc3f5d29bd5003.tar.gz sonarqube-74af3d8161ca9a767d9b6a7a2bdc3f5d29bd5003.zip |
SONAR-6742 fix issue refreshing after the custom action
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/components/issue/models/issue.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/models/issue.js b/server/sonar-web/src/main/js/components/issue/models/issue.js index 5d509e77acb..0268100a7dd 100644 --- a/server/sonar-web/src/main/js/components/issue/models/issue.js +++ b/server/sonar-web/src/main/js/components/issue/models/issue.js @@ -223,10 +223,13 @@ export default Backbone.Model.extend({ */ customAction: function (actionKey, options) { var opts = _.extend({ + type: 'POST', url: this.urlRoot() + '/do_action', data: { issue: this.id, actionKey: actionKey } }, options); - return this._action(opts); + var xhr = Backbone.ajax(opts); + this.trigger('request', this, xhr, opts); + return xhr; }, getLinearLocations: function () { |