Merge pull request #28 from finnlabs/feature/watch-issues-modal

Feature/watch issues modal
pull/6827/head
sschu 12 years ago
commit c559d5f3b7
  1. 15
      app/assets/javascripts/backlogs/app/common.js
  2. 1
      lib/open_project/backlogs/issue_edit_actions.rb

@ -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) {

@ -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),

Loading…
Cancel
Save