Commit 518a8270 authored by Sven Franck's avatar Sven Franck

fix: add currentTarget to generateActionObject

parent 188a206d
......@@ -6154,7 +6154,7 @@
// map
action = e.target.getAttribute("data-action");
fallback = e.currentTarget.getAttribute("data-action");
handler = map.actions[action];
handler = map.actions[fallback || action];
if (fallback || action) {
if (handler) {
......@@ -6366,7 +6366,7 @@
gadget = e.target;
break;
default:
element = e.target || e;
element = e.currentTarget || e.target || e;
pop = element.getAttribute("data-rel") === null;
id = pop ?
(element.getAttribute("data-reference") || util.getPage().getAttribute("data-url")) :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment