diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-03 10:00:06 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-03 10:00:06 +0200 |
commit | 3c4bc228a1f7b5731cf464f3f407c9ed9ace3cd2 (patch) | |
tree | d9ac0458c66dfa3c5d4922314df9d41499f578bc /applications/luci-app-nlbwmon | |
parent | 1099aebdee29b8e5408688d0fd64d49e6ec4bd35 (diff) |
treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-nlbwmon')
-rw-r--r-- | applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw.js index 8a01b1db49..033f1f06c7 100644 --- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw.js +++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw.js @@ -63,7 +63,7 @@ Chart.defaults.global.tooltipTemplate = function(tip) { function kpi(id, val1, val2, val3) { - var e = L.dom.elem(id) ? id : document.getElementById(id); + var e = dom.elem(id) ? id : document.getElementById(id); if (val1 && val2 && val3) e.innerHTML = _('%s, %s and %s').format(val1, val2, val3); @@ -96,8 +96,8 @@ function pie(id, data) } } - var node = L.dom.elem(id) ? id : document.getElementById(id), - key = L.dom.elem(id) ? id.id : id, + var node = dom.elem(id) ? id : document.getElementById(id), + key = dom.elem(id) ? id.id : id, ctx = node.getContext('2d'); if (chartRegistry.hasOwnProperty(key)) @@ -279,7 +279,7 @@ function renderHostDetail(tooltip) var rxData = [], txData = []; - L.dom.content(tooltip, [ + dom.content(tooltip, [ E('div', { 'class': 'head' }, [ E('div', { 'class': 'pie' }, [ E('label', _('Download')), |