summaryrefslogtreecommitdiff
path: root/lib/gallery.dialog.js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-08 23:39:25 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-08 23:39:25 +0000
commita68ac7d2ce45a1af1b46f0b50d71f41c5cf1c008 (patch)
tree3237dca71256076187ed6529a96a84ca77f1de15 /lib/gallery.dialog.js
parentcdae043999948a0b1b3989de536f0425268ee98c (diff)
Fix dialogs in IE7 so that they appear. The sizes are still wrong, though.
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r--lib/gallery.dialog.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js
index a7f66cce..f90c561c 100644
--- a/lib/gallery.dialog.js
+++ b/lib/gallery.dialog.js
@@ -3,7 +3,11 @@
* @see openDialog()
*/
function handleDialogEvent(event) {
- openDialog(event.currentTarget);
+ var target = event.currentTarget;
+ if (!target) {
+ target = event.srcElement; // IE7
+ }
+ openDialog(target);
event.preventDefault();
}