From be506665dfab87138dbc8dc46521c6d6c60af0f9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 2 Dec 2018 21:40:05 +0800 Subject: [PATCH] luci-base: fix ReferenceError The showTooltip() and hideTooltip() functions have been moved to luci.js Reported-by: brv phoenix Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/cbi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index edf634ee7..635740a70 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -2196,12 +2196,12 @@ function hideModal() document.addEventListener('DOMContentLoaded', function() { document.addEventListener('validation-failure', function(ev) { if (ev.target === document.activeElement) - showTooltip(ev); + L.showTooltip(ev); }); document.addEventListener('validation-success', function(ev) { if (ev.target === document.activeElement) - hideTooltip(ev); + L.hideTooltip(ev); }); document.querySelectorAll('.table').forEach(cbi_update_table); -- 2.25.1