luci-base: add member `allowduplicates` to `DynamicList`
authorAnya Lin <hukk1996@gmail.com>
Sat, 11 Jan 2025 09:34:19 +0000 (17:34 +0800)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 22 Jan 2025 14:36:05 +0000 (15:36 +0100)
commit9d9a7f42d87f35901120771f50e6d42ad7de88b8
tree1d1369dd8b69fd968fe22f65fdf24666a552453a
parent822822f7d4dd037362ecd9aac4d2a5373e0ec2f6
luci-base: add member `allowduplicates` to `DynamicList`

Add member `allowduplicates` to `DynamicList` to allow duplicate
underlying form values.

`allowduplicates` defaults is `null`, `DynamicList` will keep the
same behavior as before.
If `true`, the underlying form value will not be checked
for duplication.

Signed-off-by: Anya Lin <hukk1996@gmail.com>
modules/luci-base/htdocs/luci-static/resources/form.js
modules/luci-base/htdocs/luci-static/resources/ui.js