SECTION=Navigation::SECTION_RESOURCE
+ def show
+ require_parameters :id
+
+ @issue_results = Api.issues.find(params[:id])
+ params[:layout] = 'false'
+
+ render :action => 'show'
+ end
+
def action_form
verify_ajax_request
require_parameters :id, :issue
var commentElt = $j('#<%= params[:htmlId] -%>');
var issueElt = commentElt.closest('[data-issue-key]');
var replaced = $j(html);
- issueElt.replaceWholeText(replaced);
+ issueElt.replaceWith(replaced);
// re-enable the links opening modal popups
replaced.find('.open-modal').modal();
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');
- parameters['issue']=issueKey;
+ parameters['issue'] = issueKey;
$j.ajax({
type: "POST",
).success(function (htmlResponse) {
var replaced = $j(htmlResponse);
issueElt.replaceWith(replaced);
+
// re-enable the links opening modal popups
replaced.find('.open-modal').modal();
+
+ notifyIssueChange(issueKey);
}
).fail(function (jqXHR, textStatus) {
closeIssueForm(elt);
function doIssueTransition(elt, transition) {
var parameters = {'transition': transition};
return doIssueAction(elt, 'transition', parameters)
-}
-
+}
\ No newline at end of file