summaryrefslogtreecommitdiff
path: root/lib/gallery.dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r--lib/gallery.dialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js
index cfc89227..ed17cf9d 100644
--- a/lib/gallery.dialog.js
+++ b/lib/gallery.dialog.js
@@ -4,7 +4,7 @@
* @see openDialog()
*/
function handleDialogEvent(event) {
- openDialog(event.data.element);
+ openDialog(event.currentTarget);
event.preventDefault();
}