diff options
Diffstat (limited to 'applications')
-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 4b4b14008..9feafd824 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))); }); }, |