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

Blueprint cart fix: errors in cart no longer close lightbox.

parent 22b28ced
Branches
Tags
No related merge requests found
......@@ -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();
}
}
......@@ -167,6 +167,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: {
......
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