summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/tools/widgets.js7
1 files changed, 4 insertions, 3 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 10b65be8ec..ae17d8197d 100644
--- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
+++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
@@ -187,9 +187,10 @@ var CBIZoneSelect = form.ListValue.extend({
emptyval.setAttribute('data-value', '');
}
- L.dom.content(emptyval.querySelector('span'), [
- E('strong', _('Device')), E('span', ' (%s)'.format(_('input')))
- ]);
+ if (opt[0].allowlocal)
+ L.dom.content(emptyval.querySelector('span'), [
+ E('strong', _('Device')), E('span', ' (%s)'.format(_('input')))
+ ]);
L.dom.content(anyval.querySelector('span'), [
E('strong', _('Any zone')), E('span', ' (%s)'.format(_('forward')))