summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
index db3bb8eaff..112f9436ae 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
@@ -1237,7 +1237,10 @@ return view.extend({
};
proto = s2.option(form.ListValue, 'proto', _('Protocol'));
- proto.validate = name.validate;
+ proto.onchange = function(ev, section_id, value) {
+ var elem = name.getUIElement(section_id);
+ elem.triggerValidation();
+ };
device = s2.option(widgets.DeviceSelect, 'device', _('Device'));
device.noaliases = false;