changeset 196:9db200b610ea

Add mgalPreventDefault(event) function. Not used yet.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Mar 2018 13:49:22 +0200
parents f3098855ad58
children 4150b412a783
files mgallery.js
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.js	Mon Mar 19 13:44:12 2018 +0200
+++ b/mgallery.js	Mon Mar 19 13:49:22 2018 +0200
@@ -169,3 +169,10 @@
 {
   mgalDisplayInfo(false);
 }
+
+
+function mgalPreventDefault(ev)
+{
+  ev.preventDefault();
+  ev.target.click();
+}