luci-base: fix ReferenceError

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>
This commit is contained in:
Jo-Philipp Wich 2018-12-02 21:40:05 +08:00
parent be2d0536f4
commit be506665df

View 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);