summaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/javascripts/resource.js
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-05-09 16:45:38 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-05-14 15:11:00 +0200
commite9475e56b36eee4b79b8b73708281426af366416 (patch)
treecc91e8c2608f2102a21aa2cab197efaba92ccf66 /sonar-server/src/main/webapp/javascripts/resource.js
parentf1bb3dd2a87aea499f550eee4b0f37412f91ab53 (diff)
downloadsonarqube-e9475e56b36eee4b79b8b73708281426af366416.tar.gz
sonarqube-e9475e56b36eee4b79b8b73708281426af366416.zip
SONAR-2541 Add extension point LinkReviewAction
- Draft of API - Add the review_data table - Link all this with the Ruby side - Allow to call the action from the Web UI
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts/resource.js')
-rw-r--r--sonar-server/src/main/webapp/javascripts/resource.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/resource.js b/sonar-server/src/main/webapp/javascripts/resource.js
index 1223897743a..7b64d3a74a3 100644
--- a/sonar-server/src/main/webapp/javascripts/resource.js
+++ b/sonar-server/src/main/webapp/javascripts/resource.js
@@ -40,10 +40,11 @@ function hideMoreViolationActions(violation_id) {
}
// show the form to comment violation
-function sCF(violation_id) {
+function sCF(violation_id, review_action_id) {
hideMoreViolationActions(violation_id);
new Ajax.Updater('reviewForm' + violation_id,
- baseUrl + '/reviews/violation_comment_form/' + violation_id,
+ baseUrl + '/reviews/violation_comment_form/' + violation_id
+ + (review_action_id==null ? "" : "?review_action_id=" + review_action_id),
{
asynchronous:true,
evalScripts:true,