From a68ac7d2ce45a1af1b46f0b50d71f41c5cf1c008 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 8 Feb 2009 23:39:25 +0000 Subject: Fix dialogs in IE7 so that they appear. The sizes are still wrong, though. --- lib/gallery.dialog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/gallery.dialog.js') 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(); } -- cgit v1.2.3