Permalink
Browse files

fixed manual validation (https://github.com/mcurry/js_validate/issues…

  • Loading branch information...
1 parent 6bf1bb7 commit e06538df8b3af0b67e1c44d32e9ce4b02b858dea Matt Curry committed Mar 4, 2011
Showing with 5 additions and 3 deletions.
  1. +3 −3 README
  2. +2 −0 webroot/js/jquery.validation.js
View
@@ -1,6 +1,6 @@
/*
* CakePHP jQuery Validation Plugin
- * Copyright (c) 2009 Matt Curry
+ * Copyright (c) 2011 Matt Curry
* www.PseudoCoder.com
* http://github.com/mcurry/js_validate/
* http://sandbox2.pseudocoder.com/demo/validation
@@ -73,12 +73,12 @@ Then catch the submit and run the validation manually:
//your own code here
//run the validation
- valid = $.fn.validate($(this).data("validation"));
+ valid = $.fn.validate.check($(this).data("validation"));
//more code
return valid;
- }
+ });
/* Tests */
1. CakePHP unit tests are available through the normal /test.php
@@ -240,4 +240,6 @@
$("#" + options.messageId).html(errors.join("<br />")).slideDown();
}
};
+
+ var options = [];
})(jQuery);

0 comments on commit e06538d

Please sign in to comment.