remove old form validation

This commit is contained in:
Uwe Steinmann 2021-12-03 09:31:03 +01:00
parent 2c182e3d09
commit 489e01d2c6

View File

@ -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
} /* }}} */