From 063ab206f6b435ee0953f9d21287d688ceea1fcf Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 4 Nov 2014 11:31:09 -0500 Subject: [PATCH] Allow displayError to open the Lightbox if closed. --- themes/bootstrap3/js/lightbox.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js index 4e166e26372..3bcbd79e353 100644 --- a/themes/bootstrap3/js/lightbox.js +++ b/themes/bootstrap3/js/lightbox.js @@ -193,6 +193,11 @@ var Lightbox = { if (typeof Recaptcha !== "undefined" && Recaptcha.widget) { Recaptcha.reload(); } + // If the lightbox isn't visible, fix that + if(this.shown == false) { + $('#modal').modal('show'); + this.shown = true; + } }, /***********************************/ -- GitLab