Skip to content

Commit

Permalink
Fixed issue #298
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Brookbanks committed Mar 2, 2015
1 parent 3a40af5 commit e2ae279
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions skins/foundation/js/cubecart.validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jQuery(document).ready(function() {
required: $('#validate_field_required').text()
});

$("form.add_to_basket").validate({
submitHandler: function(form) {
add_to_basket(form);
}
$("form.add_to_basket").each(function(index, el) {
$(el).validate({
submitHandler: function(form) {
add_to_basket(form);
}
});
});

$("#recover_password").validate({
rules: {
'email': {
Expand Down

0 comments on commit e2ae279

Please sign in to comment.