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:
parent
be2d0536f4
commit
be506665df
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue