From 3c4bc228a1f7b5731cf464f3f407c9ed9ace3cd2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 3 Apr 2020 10:00:06 +0200 Subject: treewide: import utility classes explicitly Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/nextdns/logread.js | 6 ++++-- .../htdocs/luci-static/resources/view/nextdns/overview.js | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-nextdns/htdocs/luci-static/resources') diff --git a/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/logread.js b/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/logread.js index 9b3c7bfc41..0ad4a79825 100644 --- a/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/logread.js +++ b/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/logread.js @@ -1,9 +1,11 @@ 'use strict'; +'require view'; +'require poll'; 'require fs'; -return L.view.extend({ +return view.extend({ render: function() { - L.Poll.add(function() { + poll.add(function() { return L.resolveDefault(fs.exec('/sbin/logread', ['-e', 'nextdns']), { code: 1 }) .then(function(res) { var content; diff --git a/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/overview.js b/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/overview.js index 2fd693f3e2..4899fda97b 100644 --- a/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/overview.js +++ b/applications/luci-app-nextdns/htdocs/luci-static/resources/view/nextdns/overview.js @@ -1,7 +1,8 @@ 'use strict'; +'require view'; 'require form'; -return L.view.extend({ +return view.extend({ render: function() { var m, s, o; -- cgit v1.2.3