diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-11-03 21:54:40 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-11-03 21:55:50 +0100 |
commit | 86f492173d1daab8b75e4d4bd70ba06872ea70fa (patch) | |
tree | 3a64f76424681b0a0bb613c6966079a530ffd057 /applications/luci-app-firewall/htdocs | |
parent | b2a46e131b778ae14156676de8daf8231ab8e151 (diff) |
treewide: require ui.js explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/custom.js | 5 |
1 files changed, 3 insertions, 2 deletions
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))); }); }, |