luci-base: fix ReferenceError
authorJo-Philipp Wich <jo@mein.io>
Sun, 2 Dec 2018 13:40:05 +0000 (21:40 +0800)
committerJo-Philipp Wich <jo@mein.io>
Sun, 2 Dec 2018 14:01:58 +0000 (15:01 +0100)
The showTooltip() and hideTooltip() functions have been moved to luci.js

Reported-by: brv phoenix <feixuekaka1@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js

index edf634ee742085d0696af884688c56585fb964de..635740a70c1a79203feb080de2114c7e5440e7e8 100644 (file)
@@ -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);