From 86f492173d1daab8b75e4d4bd70ba06872ea70fa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 3 Nov 2019 21:54:40 +0100 Subject: treewide: require ui.js explicitly Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/status/bandwidth.js | 3 ++- .../htdocs/luci-static/resources/view/status/wireless.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/luci-mod-status/htdocs/luci-static') diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js index 0565490b9d..18e2160b51 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js @@ -1,4 +1,5 @@ 'use strict'; +'require ui'; 'require rpc'; 'require network'; @@ -298,7 +299,7 @@ return L.view.extend({ }); } - L.ui.tabs.initTabGroup(v.firstElementChild.childNodes); + ui.tabs.initTabGroup(v.firstElementChild.childNodes); this.pollData(); diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js index 45dd54a883..ce0c72bc3b 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js @@ -1,4 +1,5 @@ 'use strict'; +'require ui'; 'require rpc'; 'require network'; @@ -326,7 +327,7 @@ return L.view.extend({ }); } - L.ui.tabs.initTabGroup(v.firstElementChild.childNodes); + ui.tabs.initTabGroup(v.firstElementChild.childNodes); this.pollData(); -- cgit v1.2.3