improved form

This commit is contained in:
andmironov 2016-12-15 15:28:21 +03:00
parent 2611824eff
commit 60b704f180
1 changed files with 5 additions and 3 deletions

View File

@ -337,9 +337,11 @@
},
showErrors: function(errorMap, errorList) {
var content = errorMap.EMAIL;
showErrorMessage(content);
shakeForm()
if(errorMap.hasOwnProperty("EMAIL")) {
shakeForm()
var content = errorMap.EMAIL;
showErrorMessage(content);
}
},
// Submit the form via ajax (see: jQuery Form plugin)