Project

General

Profile

Defect #26857 ยป 0001-Don-t-eval-cross-origin-requests-in-jQuery-26857.patch

Jan from Planio www.plan.io, 2018-01-30 12:00

View differences:

public/javascripts/application.js
1 1
/* Redmine - project management software
2 2
   Copyright (C) 2006-2017  Jean-Philippe Lang */
3 3

  
4
$.ajaxPrefilter(function (s) {
5
  if (s.crossDomain) {
6
    s.contents.script = false;
7
  }
8
});
9

  
4 10
function checkAll(id, checked) {
5 11
  $('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked);
6 12
}
    (1-1/1)