Anonymous     JavaScript     09 Dec 2012    
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/*<![CDATA[*/
jQuery(function($) {
$('#login-form').yiiactiveform({'validateOnSubmit':true,'attributes':[{'id':'LoginForm_login','inputID':'LoginForm_login','errorID':'LoginForm_login_em_','model':'LoginForm','name':'login','enableAjaxValidation':false,'clientValidation':function(value, messages, attribute) {
if($.trim(value)=='') {
messages.push("Login cannot be blank.");
}
}},{'id':'LoginForm_password','inputID':'LoginForm_password','errorID':'LoginForm_password_em_','model':'LoginForm','name':'password','enableAjaxValidation':false,'clientValidation':function(value, messages, attribute) {
if($.trim(value)=='') {
messages.push("Password cannot be blank.");
}
}},{'id':'LoginForm_rememberMe','inputID':'LoginForm_rememberMe','errorID':'LoginForm_rememberMe_em_','model':'LoginForm','name':'rememberMe','enableAjaxValidation':false,'clientValidation':function(value, messages, attribute) {
if($.trim(value)!='' && value!="1" && value!="0") {
messages.push("\u0417\u0430\u043f\u0430\u043c\u044f\u0442\u0430\u0442\u0438 \u043c\u0435\u043d\u0435 must be either 1 or 0.");
}