diff options
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/cbi.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index f4b0ba3491..7248c51779 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -1606,6 +1606,9 @@ function matchesElem(node, selector) function findParent(node, selector) { + if (node.closest) + return node.closest(selector); + while (node) if (matchesElem(node, selector)) return node; |