diff --git a/themes/blueprint/js/lightbox.js b/themes/blueprint/js/lightbox.js index 097ce3894545ea3be7b45da0a8e2141cc1b008ac..1d9279dce2553c8ab415ca9524792ca6d8c822a0 100644 --- a/themes/blueprint/js/lightbox.js +++ b/themes/blueprint/js/lightbox.js @@ -72,7 +72,7 @@ function displayLightboxFeedback($form, message, type) { function displayFormError($form, error) { $form.parent().find('.error').remove(); $form.prepend('<div class="error">' + error + '</div>'); - if (Recaptcha) { + if (typeof Recaptcha != "undefined") { Recaptcha.reload(); } } @@ -168,6 +168,7 @@ function registerAjaxCart() { var $form = $('#modalDialog form[name="cartForm"]'); if($form) { + $($form).submit(function(){return false;}); $("input[name='ids[]']", $form).attr('checked', false); $($form).validate({ rules: {