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 --- .../luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js | 3 ++- .../luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-ttyd/htdocs/luci-static') diff --git a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js index e92880d53c..9934ecebd7 100644 --- a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js +++ b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/config.js @@ -1,8 +1,9 @@ 'use strict'; +'require view'; 'require form'; 'require tools.widgets as widgets'; -return L.view.extend({ +return view.extend({ render: function() { var m, s, o; diff --git a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js index 4725f7a5bc..26756a3692 100644 --- a/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js +++ b/applications/luci-app-ttyd/htdocs/luci-static/resources/view/ttyd/term.js @@ -1,7 +1,8 @@ 'use strict'; +'require view'; 'require uci'; -return L.view.extend({ +return view.extend({ load: function() { return uci.load('ttyd'); }, -- cgit v1.2.3