summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-23 21:58:25 +0100
committerJo-Philipp Wich <jo@mein.io>2020-03-23 21:58:25 +0100
commit3afe606743c44414f11f713b1557d4c0fb9faf80 (patch)
tree5f243d809002a855b1406ebda58809ed125ae66d
parent90990df3b6865e276c065733e724012938174853 (diff)
luci-mod-system: system.js: rework local time widget markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js44
1 files changed, 22 insertions, 22 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 c2f31e7b4..8fe6b5754 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
@@ -48,28 +48,28 @@ callTimezone = rpc.declare({
CBILocalTime = form.DummyValue.extend({
renderWidget: function(section_id, option_id, cfgvalue) {
return E([], [
- E('span', {}, [
- E('input', {
- 'id': 'localtime',
- 'type': 'text',
- 'readonly': true,
- 'value': new Date(cfgvalue * 1000).toLocaleString()
- })
- ]),
- ' ',
- E('button', {
- 'class': 'cbi-button cbi-button-apply',
- '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': ui.createHandlerFn(this, function() {
- return callInitAction('sysntpd', 'restart');
- })
- }, _('Sync with NTP-Server')) : ''
+ E('input', {
+ 'id': 'localtime',
+ 'type': 'text',
+ 'readonly': true,
+ 'value': new Date(cfgvalue * 1000).toLocaleString()
+ }),
+ E('br'),
+ E('span', { 'class': 'control-group' }, [
+ E('button', {
+ 'class': 'cbi-button cbi-button-apply',
+ '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': ui.createHandlerFn(this, function() {
+ return callInitAction('sysntpd', 'restart');
+ })
+ }, _('Sync with NTP-Server')) : ''
+ ])
]);
},
});