diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-02-08 23:39:25 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-08 23:39:25 +0000 |
commit | a68ac7d2ce45a1af1b46f0b50d71f41c5cf1c008 (patch) | |
tree | 3237dca71256076187ed6529a96a84ca77f1de15 | |
parent | cdae043999948a0b1b3989de536f0425268ee98c (diff) |
Fix dialogs in IE7 so that they appear. The sizes are still wrong, though.
-rw-r--r-- | lib/gallery.dialog.js | 6 |
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(); } |