更正了validator命名的问题,remoteCSRF->remote.把原生的remote改成了remotex。。。

[ci skip]
This commit is contained in:
sxw
2015-08-05 20:01:15 +08:00
parent b91ff0688a
commit cbb86d72f1
6 changed files with 175 additions and 173 deletions

View File

@@ -18,8 +18,10 @@ require(["jquery", "bs_alert", "csrf", "validation"], function($, bs_alert, csrf
max: 30,
message: '用户名长度必须在3到30位之间'
},
usernameCheck:{
message: '用户名已存在'
remote: {
message: "用户名已存在",
url: "/api/username_check/",
field: 'username'
}
}
},
@@ -64,7 +66,7 @@ require(["jquery", "bs_alert", "csrf", "validation"], function($, bs_alert, csrf
emailAddress: {
message: "请填写有效的邮箱地址"
},
remoteCSRF: {
remote: {
message: "您已经注册过了",
url: "/api/email_check/",
field: 'email'