修改 js 的命名风格

This commit is contained in:
virusdefender
2015-08-15 13:54:30 +08:00
parent d031f14a68
commit 025335b40a
50 changed files with 1403 additions and 896 deletions

View File

@@ -7,12 +7,12 @@
// AMD module is defined
if (typeof define === "function" && define.amd) {
define("validator/remote", ["jquery", "base", "csrf"], factory);
define("validator/remote", ["jquery", "base", "csrfToken"], factory);
} else {
// planted over the root!
factory(root.jQuery, root.FormValidation);
}
}(this, function ($, FormValidation, csrfHeader) {
}(this, function ($, FormValidation, csrfTokenHeader) {
FormValidation.I18n = $.extend(true, FormValidation.I18n || {}, {
'en_US': {
remote: {
@@ -28,7 +28,7 @@
return true;
var url = options.url;
var xhr = $.ajax({
beforeSend: csrfHeader,
beforeSend: csrfTokenHeader,
url: url,
dataType: 'json',
data: ajaxData,