未验证 提交 56d78d77 编写于 作者: G Guillermo Iguaran 提交者: Rafael Mendonça França

Merge pull request #29151 from onemanstartup/jquery_slim_fix

Check for jQuery ajax
上级 55c3e1ff
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册