DMXzone Lightbox Support Product Page

Answered

Prevent Lightbox from closing when clicked outside

Asked 13 May 2012 16:13:54
2
have this question
13 May 2012 16:13:54 Peter Steinlechner posted:
Hi

is there a way that users can't close an open lightbox with a click on the transparent area of the lightbox and only can use the controls inside of the box?

Replies

Replied 15 May 2012 07:19:43
15 May 2012 07:19:43 Teodor Kuduschiev replied:
Hello Peter,

Unfortunately this is not possible.
Replied 15 May 2012 08:34:57
15 May 2012 08:34:57 Peter Steinlechner replied:
Thanks for your reply and ouch :-(

Could this maybe be achieved with the Advanced Layer Popup extension?
Replied 15 May 2012 12:06:20
15 May 2012 12:06:20 Teodor Kuduschiev replied:
Yes, this can be achieved using advanced layer popup.
Replied 16 May 2012 15:13:27
16 May 2012 15:13:27 Peter Steinlechner replied:
Hi Teodor

I tried to achieve this with the Advanced Layer Popup but it behaves the same like the lightbox - as soon as i click on the overlay area, then the popup closes.

Do I have to tweak it somewhere or did i miss out on something ?
Replied 16 May 2012 18:17:14
16 May 2012 18:17:14 Teodor Kuduschiev replied:
Please provide a link to your page.
Replied 16 May 2012 19:45:32
16 May 2012 19:45:32 Peter Steinlechner replied:
Hi Teodor

thanks for your reply but unfortunately its on an intranet so I cant send you a link.

Now the good news, I got it working by tweaking the following scripts a bit:

dmxlig.htbox.js line 45: closeOnOverlayClick:!1,(was 0)

default.js; closeOnOverlayClick:false, (was true)

Maybe it would be nice as a feature for future releases if this settings could be set via the edit options of the lightbox, as it could be quite usefull imho
Replied 28 Jan 2013 17:26:52
28 Jan 2013 17:26:52 Willy Gelin replied:
Thank You Peter!

But it's easier to just reply NO! isn't it.

Reply to this topic