Merge pull request #29151 from onemanstartup/jquery_slim_fix
Check for jQuery ajax
This commit is contained in:
commit
cbf378bc27
|
@ -9,7 +9,7 @@
|
|||
} = Rails
|
||||
|
||||
# For backward compatibility
|
||||
if jQuery? and not jQuery.rails
|
||||
if jQuery? and jQuery.ajax? and not jQuery.rails
|
||||
jQuery.rails = Rails
|
||||
jQuery.ajaxPrefilter (options, originalOptions, xhr) ->
|
||||
CSRFProtection(xhr) unless options.crossDomain
|
||||
|
|
Loading…
Reference in New Issue