mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2025-12-14 15:36:51 +03:00
luci-app-internet-detector: Minor fixes
This commit is contained in:
@@ -88,9 +88,9 @@ return view.extend({
|
|||||||
appStatus : 'stoped',
|
appStatus : 'stoped',
|
||||||
initStatus : null,
|
initStatus : null,
|
||||||
inetStatus : null,
|
inetStatus : null,
|
||||||
inetStatusLabel : E('span', { 'class': 'label' }),
|
inetStatusLabel : E('span', { 'class': 'label', 'id': 'inetStatusLabel' }),
|
||||||
inetStatusSpinner : E('span', { 'style': 'margin-top:1em' }, ' '),
|
inetStatusSpinner : E('span', { 'style': 'margin-top:1em' }, ' '),
|
||||||
serviceStatusLabel : E('em'),
|
serviceStatusLabel : E('em', { 'id': 'serviceStatusLabel' }),
|
||||||
initButton : null,
|
initButton : null,
|
||||||
uiPollCounter : 0,
|
uiPollCounter : 0,
|
||||||
uiPollState : null,
|
uiPollState : null,
|
||||||
@@ -271,7 +271,7 @@ return view.extend({
|
|||||||
this.ctx.setInternetStatus();
|
this.ctx.setInternetStatus();
|
||||||
|
|
||||||
return E([
|
return E([
|
||||||
E('label', { 'class': 'cbi-value-title' },
|
E('label', { 'class': 'cbi-value-title', 'for': 'inetStatusLabel' },
|
||||||
_('Internet status')
|
_('Internet status')
|
||||||
),
|
),
|
||||||
E('div', { 'class': 'cbi-value-field' }, [
|
E('div', { 'class': 'cbi-value-field' }, [
|
||||||
@@ -295,7 +295,7 @@ return view.extend({
|
|||||||
|
|
||||||
renderWidget: function(section_id, option_index, cfgvalue) {
|
renderWidget: function(section_id, option_index, cfgvalue) {
|
||||||
return E([
|
return E([
|
||||||
E('label', { 'class': 'cbi-value-title' },
|
E('label', { 'class': 'cbi-value-title', 'for': 'serviceStatusLabel' },
|
||||||
_('Service')
|
_('Service')
|
||||||
),
|
),
|
||||||
E('div', { 'class': 'cbi-value-field' },
|
E('div', { 'class': 'cbi-value-field' },
|
||||||
@@ -341,11 +341,15 @@ return view.extend({
|
|||||||
}, (!this.ctx.initStatus) ? _('Disabled') : _('Enabled'));
|
}, (!this.ctx.initStatus) ? _('Disabled') : _('Enabled'));
|
||||||
|
|
||||||
return E( [
|
return E( [
|
||||||
E('label', { 'class': 'cbi-value-title' },
|
E('label', { 'class': 'cbi-value-title', 'for': 'initButton' },
|
||||||
_('Run service at startup')
|
_('Run service at startup')
|
||||||
),
|
),
|
||||||
E('div', { 'class': 'cbi-value-field' },
|
E('div', { 'class': 'cbi-value-field' },
|
||||||
this.ctx.initButton
|
E('div', {}, this.ctx.initButton),
|
||||||
|
E('input', {
|
||||||
|
'id' : 'initButton',
|
||||||
|
'type': 'hidden',
|
||||||
|
}),
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user