From fca9a363b82a0000176b6a73003bc78979d7875f Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Wed, 25 Jun 2014 10:39:29 -0400 Subject: [PATCH] This fix is for making new accounts. Removed yesterday due to misunderstanding. Restored. --- themes/bootstrap/js/cart.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap/js/cart.js b/themes/bootstrap/js/cart.js index 441d2305e86..4f726dccedc 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) { -- GitLab