diff options
Diffstat (limited to 'lib')
-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(); } |