Commit a07c464c authored by Sven Franck's avatar Sven Franck Committed by Cédric Le Ninivin

fix added currentTarget as fallback for clicks on nested elements

Conflicts:
	js/erp5_loader.js
parent b9480917
......@@ -9126,7 +9126,7 @@
*/
// TODO: clean this up
app.action = function (e) {
var type, tag, val, action, handler;
var type, tag, val, action, handler, fallback;
type = e.type;
tag = e.target.tagName;
......@@ -9148,8 +9148,10 @@
}
// map
action = e.target.getAttribute("data-action");
fallback = e.currentTarget.getAttribute("data-action");
handler = map.actions[action];
if (action) {
if (fallback || action) {
if (handler) {
handler(app.generateActionObject(e), val);
} else {
......
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