diff options
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts/resource.js')
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/resource.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/resource.js b/sonar-server/src/main/webapp/javascripts/resource.js index 193a8b4fe3e..77a5a083779 100644 --- a/sonar-server/src/main/webapp/javascripts/resource.js +++ b/sonar-server/src/main/webapp/javascripts/resource.js @@ -49,6 +49,22 @@ function sCF(violation_id) { return false; } +//show the form to reply to a comment +function sRF(violation_id) { +$('vActions' + violation_id).hide(); +new Ajax.Updater('replyForm' + violation_id, + baseUrl + '/reviews/violation_comment_form/' + violation_id, + { + asynchronous:true, + evalScripts:true, + onComplete:function (request) { + $('replyForm' + violation_id).show(); + $('commentText' + violation_id).focus(); + } + }); +return false; +} + // show the form to change severity function sCSF(violation_id) { $('vActions' + violation_id).hide(); |