summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-11-08 20:44:59 +0100
committerJo-Philipp Wich <jo@mein.io>2021-11-10 11:57:43 +0100
commit21995f0cf3f53cde6cafc5b9e547fbdce9daf057 (patch)
tree9c927677718c050d557ac0a998499ed0e1324408 /modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
parent6c96414d9b2fe53a83bfd03647b4ab95918aaee8 (diff)
luci-base: tools.widgets: adjust zone selector dropdown markup
No functional changes but required for styling rules. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/tools/widgets.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/tools/widgets.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
index 35a4dc8ec9..00ec1a889c 100644
--- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
+++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
@@ -66,7 +66,7 @@ var CBIZoneSelect = form.ListValue.extend({
}, [
E('strong', _('Device')),
(this.allowany || this.allowlocal)
- ? ' (%s)'.format(this.option != 'dest' ? _('output') : _('input')) : ''
+ ? E('span', ' (%s)'.format(this.option != 'dest' ? _('output') : _('input'))) : ''
]);
}
else if (!this.multiple && (this.rmempty || this.optional)) {
@@ -82,7 +82,7 @@ var CBIZoneSelect = form.ListValue.extend({
'style': 'background-color:' + firewall.getColorForName(null)
}, [
E('strong', _('Any zone')),
- (this.allowany && this.allowlocal && !isOutputOnly) ? ' (%s)'.format(_('forward')) : ''
+ (this.allowany && this.allowlocal && !isOutputOnly) ? E('span', ' (%s)'.format(_('forward'))) : ''
]);
}
@@ -188,11 +188,11 @@ var CBIZoneSelect = form.ListValue.extend({
}
L.dom.content(emptyval.querySelector('span'), [
- E('strong', _('Device')), ' (%s)'.format(_('input'))
+ E('strong', _('Device')), E('span', ' (%s)'.format(_('input')))
]);
L.dom.content(anyval.querySelector('span'), [
- E('strong', _('Any zone')), ' (%s)'.format(_('forward'))
+ E('strong', _('Any zone')), E('span', ' (%s)'.format(_('forward')))
]);
anyval.parentNode.insertBefore(emptyval, anyval);