diff --git a/app/assets/javascripts/backlogs/app/common.js b/app/assets/javascripts/backlogs/app/common.js index dd19fe0eb0..329d19b280 100644 --- a/app/assets/javascripts/backlogs/app/common.js +++ b/app/assets/javascripts/backlogs/app/common.js @@ -89,21 +89,6 @@ if (window.RB === null || window.RB === undefined) { } }; - // Modify the ajax request before being sent to the server, - // i.e. add project id and csrf token - $(document).ajaxSend(function (event, request, settings) { - var c = window.RB.constants; - - settings.data = settings.data || ""; - settings.data += (settings.data ? "&" : "") + "project_id=" + c.project_id; - - if (c.protect_against_forgery) { - settings.data += "&" + - c.request_forgery_protection_token + "=" + - encodeURIComponent(c.form_authenticity_token); - } - }); - // Process outstanding entries in the ajax queue whenever a ajax request // finishes. $(document).ajaxComplete(function (event, xhr, settings) { diff --git a/lib/open_project/backlogs/issue_edit_actions.rb b/lib/open_project/backlogs/issue_edit_actions.rb index ccaa42c31c..83694b6ca8 100644 --- a/lib/open_project/backlogs/issue_edit_actions.rb +++ b/lib/open_project/backlogs/issue_edit_actions.rb @@ -8,7 +8,6 @@ class OpenProject::Backlogs::IssueEditActions < OpenProject::Nissue::View end def render(t) - css_class = "watcher_link_#{@issue.id}" content_tag(:div, [ t.link_to_issue_box(l(:button_cancel), @issue, :class => 'icon icon-cancel'), (t.link_to_remote(l(:button_save),