diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-15 17:02:33 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-15 17:02:33 +0200 |
commit | b5b87c1b87c5484af283f2019a1a602fd4ff5e42 (patch) | |
tree | f43e76836ab822e62dcb48eb0ad0ceffb2badb87 /sonar-server/src/main/webapp/javascripts | |
parent | 2b49da0687ed4a7bc18efad18381c79b27b9d59b (diff) | |
download | sonarqube-b5b87c1b87c5484af283f2019a1a602fd4ff5e42.tar.gz sonarqube-b5b87c1b87c5484af283f2019a1a602fd4ff5e42.zip |
SONAR-3755 fix nested tags "issue"
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts')
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/issue.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/issue.js b/sonar-server/src/main/webapp/javascripts/issue.js index e6fac587d57..480a55b82de 100644 --- a/sonar-server/src/main/webapp/javascripts/issue.js +++ b/sonar-server/src/main/webapp/javascripts/issue.js @@ -41,9 +41,11 @@ function postIssueForm(elt) { data: formElt.serialize()} ).success(function (htmlResponse) { var issueElt = formElt.closest('[data-issue-key]'); - issueElt.empty().append(htmlResponse); + var replaced = $j(htmlResponse); + issueElt.replaceWith(replaced); + // re-enable the links opening modal popups - issueElt.find('.open-modal').modal(); + replaced.find('.open-modal').modal(); } ).fail(function (jqXHR, textStatus) { closeIssueForm(elt); @@ -63,9 +65,10 @@ function doIssueAction(elt, action, parameters) { data: parameters } ).success(function (htmlResponse) { - issueElt.empty().append(htmlResponse); + var replaced = $j(htmlResponse); + issueElt.replaceWith(replaced); // re-enable the links opening modal popups - issueElt.find('.open-modal').modal(); + replaced.find('.open-modal').modal(); } ).fail(function (jqXHR, textStatus) { closeIssueForm(elt); |