summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static/resources/tools
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-06-20 00:31:21 +0200
committerJo-Philipp Wich <jo@mein.io>2023-06-20 00:31:21 +0200
commitb2546c26b5b33bf3f740149dc1a52a7ad3d6ee30 (patch)
tree4ee330d02714805728206b8b3e070855e5dfc534 /modules/luci-mod-network/htdocs/luci-static/resources/tools
parent7fad65e6875659d3d4765532b6bf359d0b4d8b20 (diff)
luci-mod-network: fix incorrectly reverting vlan device name
Fixes: #6435 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static/resources/tools')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
index 97bbf0ab5d..092bbbc14a 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
@@ -475,7 +475,7 @@ return baseclass.extend({
vid = this.section.formvalue(section_id, 'vid'),
name = this.section.getUIElement(section_id, 'name_complex');
- if (base && vid && name && !name.isChanged()) {
+ if (base && vid && name && !name.isChanged() && isNew) {
name.setValue('%s.%d'.format(base, vid));
name.triggerValidation();
}