Skip to content
Snippets Groups Projects
Commit fba65b68 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Merge branch 'release-2.3'

parents dbee312b 6b36736b
No related merge requests found
...@@ -72,7 +72,7 @@ function displayLightboxFeedback($form, message, type) { ...@@ -72,7 +72,7 @@ function displayLightboxFeedback($form, message, type) {
function displayFormError($form, error) { function displayFormError($form, error) {
$form.parent().find('.error').remove(); $form.parent().find('.error').remove();
$form.prepend('<div class="error">' + error + '</div>'); $form.prepend('<div class="error">' + error + '</div>');
if (Recaptcha) { if (typeof Recaptcha != "undefined") {
Recaptcha.reload(); Recaptcha.reload();
} }
} }
...@@ -168,6 +168,7 @@ function registerAjaxCart() { ...@@ -168,6 +168,7 @@ function registerAjaxCart() {
var $form = $('#modalDialog form[name="cartForm"]'); var $form = $('#modalDialog form[name="cartForm"]');
if($form) { if($form) {
$($form).submit(function(){return false;});
$("input[name='ids[]']", $form).attr('checked', false); $("input[name='ids[]']", $form).attr('checked', false);
$($form).validate({ $($form).validate({
rules: { rules: {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment