diff --git a/themes/bootstrap/js/cart.js b/themes/bootstrap/js/cart.js index 441d2305e868d22d9cf21867a22034c240c22d07..4f726dccedc7346856b35fc0719b8d57ea4a86b1 100644 --- a/themes/bootstrap/js/cart.js +++ b/themes/bootstrap/js/cart.js @@ -211,8 +211,13 @@ $(document).ready(function() { cartSubmit(lastCartSubmit); lastCartSubmit = false; } else { - Lightbox.getByUrl(Lightbox.openingURL); - Lightbox.openingURL = false; + var params = deparam(Lightbox.openingURL); + if (params['subaction'] != 'Login') { + Lightbox.getByUrl(Lightbox.openingURL); + Lightbox.openingURL = false; + } else { + Lightbox.close(); + } } }); Lightbox.addFormHandler('cartForm', function(evt) {