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 /modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js | |
parent | b2a46e131b778ae14156676de8daf8231ab8e151 (diff) |
treewide: require ui.js explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js index 492784cc95..ccc9342cc6 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js @@ -1,4 +1,5 @@ 'use strict'; +'require ui'; 'require uci'; 'require rpc'; 'require form'; @@ -58,14 +59,14 @@ CBILocalTime = form.DummyValue.extend({ ' ', E('button', { 'class': 'cbi-button cbi-button-apply', - 'click': L.ui.createHandlerFn(this, function() { + 'click': ui.createHandlerFn(this, function() { return callSetLocaltime(Math.floor(Date.now() / 1000)); }) }, _('Sync with browser')), ' ', this.ntpd_support ? E('button', { 'class': 'cbi-button cbi-button-apply', - 'click': L.ui.createHandlerFn(this, function() { + 'click': ui.createHandlerFn(this, function() { return callInitAction('sysntpd', 'restart'); }) }, _('Sync with NTP-Server')) : '' |