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/firewall/custom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-firewall/htdocs/luci-static/resources/view') diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/custom.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/custom.js index 4b4b140086..9feafd824e 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/custom.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/custom.js @@ -1,5 +1,6 @@ 'use strict'; 'require fs'; +'require ui'; return L.view.extend({ load: function() { @@ -11,10 +12,10 @@ return L.view.extend({ return fs.write('/etc/firewall.user', value).then(function(rc) { document.querySelector('textarea').value = value; - L.ui.addNotification(null, E('p', _('Contents have been saved.')), 'info'); + ui.addNotification(null, E('p', _('Contents have been saved.')), 'info'); fs.exec('/etc/init.d/firewall', ['restart']); }).catch(function(e) { - L.ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); + ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); }); }, -- cgit v1.2.3