summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
diff options
context:
space:
mode:
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.js5
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')) : ''