summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-04 12:00:20 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-04 12:01:33 +0200
commitaf6fd6dfab2ac576033c714cc69520e17f1fa48c (patch)
treecc1afeb4833956d928bb3d65e887e633f7bb2728
parentbee97d804100aac3ac3daf5d07a34711200922aa (diff)
luci-app-nlbwmon: use legacy `L.dom` attribute
Until it is converted to a proper view, we need to use the legacy alias. Fixes: #3835 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw.js8
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 033f1f06c7..8a01b1db49 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 = dom.elem(id) ? id : document.getElementById(id);
+ var e = L.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 = dom.elem(id) ? id : document.getElementById(id),
- key = dom.elem(id) ? id.id : id,
+ var node = L.dom.elem(id) ? id : document.getElementById(id),
+ key = L.dom.elem(id) ? id.id : id,
ctx = node.getContext('2d');
if (chartRegistry.hasOwnProperty(key))
@@ -279,7 +279,7 @@ function renderHostDetail(tooltip)
var rxData = [], txData = [];
- dom.content(tooltip, [
+ L.dom.content(tooltip, [
E('div', { 'class': 'head' }, [
E('div', { 'class': 'pie' }, [
E('label', _('Download')),