From: Jo-Philipp Wich Date: Sun, 2 Dec 2018 13:40:05 +0000 (+0800) Subject: luci-base: fix ReferenceError X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=be506665dfab87138dbc8dc46521c6d6c60af0f9;p=oweals%2Fluci.git 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 --- 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);