aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/javascripts
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-05-15 18:50:46 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-05-15 18:50:46 +0200
commit089aa6047cc98c53e93db61bee7f2b0cfac3f610 (patch)
tree27e6512b628b3c16e4139710f69ab6957682f769 /sonar-server/src/main/webapp/javascripts
parentcb0644b119344aab05d2e46742b56c7ba0cc9cb1 (diff)
downloadsonarqube-089aa6047cc98c53e93db61bee7f2b0cfac3f610.tar.gz
sonarqube-089aa6047cc98c53e93db61bee7f2b0cfac3f610.zip
SONAR-3755 raise a JS event when changing severity
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts')
-rw-r--r--sonar-server/src/main/webapp/javascripts/issue.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/issue.js b/sonar-server/src/main/webapp/javascripts/issue.js
index 15dff549f07..d30b769acbb 100644
--- a/sonar-server/src/main/webapp/javascripts/issue.js
+++ b/sonar-server/src/main/webapp/javascripts/issue.js
@@ -31,6 +31,11 @@ function closeIssueForm(elt) {
return false;
}
+/* Raise a Javascript event for Eclipse Web View */
+function notifyIssueChange(issueKey) {
+ $j(document).trigger('sonar.issue.updated', [issueKey]);
+}
+
function postIssueForm(elt) {
var formElt = $j(elt).closest('form');
formElt.find('.loading').removeClass('hidden');
@@ -46,6 +51,8 @@ function postIssueForm(elt) {
// re-enable the links opening modal popups
replaced.find('.open-modal').modal();
+
+ notifyIssueChange(issueKey)
}
).fail(function (jqXHR, textStatus) {
closeIssueForm(elt);
@@ -54,11 +61,6 @@ function postIssueForm(elt) {
return false;
}
-/* Raise a Javascript event for Eclipse Web View */
-function notifyIssueChange(issueKey) {
- $j(document).trigger('sonar.issue.updated', [issueKey]);
-}
-
function doIssueAction(elt, action, parameters) {
var issueElt = $j(elt).closest('[data-issue-key]');
var issueKey = issueElt.attr('data-issue-key');