mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 04:52:20 +00:00
[JENKINS-48516] Uniquify names before setting initial visibility
This commit is contained in:
1 parent
943e27e00c
commit
7a7f5b76bb
1 file changed
+2
-1
@@ -186,7 +186,8 @@ Behaviour.specify("INPUT.repeatable-delete", 'repeatable', 0, function(e) {
|
||||
});
|
||||
|
||||
// radio buttons in repeatable content
|
||||
Behaviour.specify("DIV.repeated-chunk", 'repeatable', 0, function(d) {
|
||||
// Needs to run before the radioBlock behavior so that names are already unique.
|
||||
Behaviour.specify("DIV.repeated-chunk", 'repeatable', -200, function(d) {
|
||||
var inputs = d.getElementsByTagName('INPUT');
|
||||
for (var i = 0; i < inputs.length; i++) {
|
||||
if (inputs[i].type == 'radio') {
|
||||
|
||||
Reference in new issue
Block a user