From 2178590c25754886274cdde792fe1df38d4f0821 Mon Sep 17 00:00:00 2001 From: "max.morawski.photo" Date: Sat, 14 Jan 2023 22:30:40 -0400 Subject: [PATCH] Arbitrary button node structure (deeper than 1 level) --- pinit_main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinit_main.js b/pinit_main.js index 542e3bc..25b5904 100644 --- a/pinit_main.js +++ b/pinit_main.js @@ -884,8 +884,8 @@ el = $.f.getEl(v); if (el) { log = $.f.getData(el, "log"); - // custom buttons with child nodes may not pass clicks; check one level up - if (!log && el.parentNode) { + // custom buttons with child nodes may not pass clicks; check the parents + while (!log && el.parentNode) { el = el.parentNode; log = $.f.getData(el, "log"); }