mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
remove old form validation
This commit is contained in:
parent
2c182e3d09
commit
489e01d2c6
|
@ -55,35 +55,9 @@ function runValidation() {
|
|||
}
|
||||
});
|
||||
}
|
||||
runValidation();
|
||||
|
||||
function checkForm()
|
||||
{
|
||||
msg = new Array();
|
||||
|
||||
if($("#currentpwd").val() == "") msg.push("<?php printMLText("js_no_pwd");?>");
|
||||
if($("#pwd").val() == "") msg.push("<?php printMLText("js_no_pwd");?>");
|
||||
if($("#pwd").val() != $("#pwdconf").val()) msg.push("<?php printMLText("js_pwd_not_conf");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready( function() {
|
||||
// $('body').on('submit', '#form', function(ev){
|
||||
// if(checkForm()) return;
|
||||
// ev.preventDefault();
|
||||
// });
|
||||
runValidation();
|
||||
});
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user