Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Future-proof the submitForm for use with forms without validation.

We might decide to use it for other submissions than EditForm.
  • Loading branch information...
commit 3f2ddbb3fb5c6fc5c81f8d9c0496c8ae269d3b49 1 parent 8168a7d
Mateusz U mateusz authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  admin/javascript/LeftAndMain.js
3  admin/javascript/LeftAndMain.js
@@ -243,7 +243,8 @@ jQuery.noConflict();
// validate if required
- if(!form.validate()) {
+ var validationResult = form.validate();
+ if(typeof validationResult!=='undefined' && !validationResult) {
// TODO Automatically switch to the tab/position of the first error
statusMessage("Validation failed.", "bad");
Please sign in to comment.
Something went wrong with that request. Please try again.