From e9475e56b36eee4b79b8b73708281426af366416 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 9 May 2012 16:45:38 +0200 Subject: 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 --- sonar-server/src/main/webapp/javascripts/resource.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sonar-server/src/main/webapp/javascripts/resource.js') 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, -- cgit v1.2.3