Close lightbox when background overlay is clicked

xaverx - October 28, 2008 - 13:41
Project:jQuery Lightbox
Version:6.x-1.0
Component:JavaScript
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When I click with mouse left or right near opened jlightbox window nothing do. In original lightbox when I click near lightbox image window, lightbox window have been closed. It's working when I click up or bottom. Its bug or feature? thank you for great module.

#1

dboulet - January 28, 2009 - 19:51
Status:active» needs review

I would consider this a bug. Here's a patch to the uncompressed javascript that fixes the problem. Now clicking anywhere on the background closes the lightbox window. This would have to get recompressed into jlightbox.js to work.

AttachmentSize
jlightbox_327139_clickclose.patch 878 bytes

#2

dboulet - March 8, 2009 - 22:23
Title:Click near jlightbox not working» Close lightbox when background overlay is clicked
Component:Code» JavaScript

Any word on getting this committed?

#3

sun - March 9, 2009 - 00:08

I need some positive confirmations for IE6, IE7, Chrome, Safari, and Firefox first.

#4

dboulet - March 9, 2009 - 15:28

I tested the uncompressed JavaScript, works for me in the following browsers:

Windows XP

  • Firefox 3.0.6
  • Opera 9.64
  • Chrome 1.0.154.48
  • Safari 3.2.2
  • IE 7.0.573.11
  • IE 6

Mac OSX

  • Firefox 3.0.7
  • Safari 3.2.1

#5

sun - March 10, 2009 - 04:26
Status:needs review» fixed

Committed to all branches.

#6

System Message - March 24, 2009 - 04:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.