Skip to content

Commit 1b3373e

Browse files
Update projectimport.js to use the gulp buildsystem
1 parent 9ed0fe7 commit 1b3373e

File tree

3 files changed

+2
-9354
lines changed

3 files changed

+2
-9354
lines changed

readthedocs/core/static-src/core/js/django-csrf.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
var $ = require('jquery');
2-
3-
41
function csrfSafeMethod(method) {
52
// these HTTP methods do not require CSRF protection
63
return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
74
}
85

6+
97
$.ajaxSetup({
108
beforeSend: function(xhr, settings) {
119
if (!csrfSafeMethod(settings.type) && !this.crossDomain) {

readthedocs/core/static-src/core/js/projectimport.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
$ = require('jquery');
21
require('./django-csrf.js');
32

43

0 commit comments

Comments
 (0)