Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
becd7540
Commit
becd7540
authored
Jun 01, 2021
by
Gabriel-31415
Browse files
status
parent
9d74737d
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/evento/submeterTrabalho.blade.php
View file @
becd7540
...
...
@@ -455,6 +455,12 @@
}
else
{
var
cln
=
participante
.
cloneNode
(
true
);
cln
.
style
.
display
=
'block'
;
// var id = cln.children[2].firstElementChild.id;
// var href = cln.children[1].firstElementChild.href;
// cln.children[2].firstElementChild.id = id + contador;
// cln.children[1].firstElementChild.href = href + contador;
// console.log(cln.children[2].firstElementChild.id)
// console.log(cln.children[1].firstElementChild.href)
// console.log(cln.style.display = 'block')
for
(
i
=
0
;
i
<
cln
.
children
.
length
;
i
++
)
{
for
(
let
index
=
0
;
index
<
cln
.
children
[
i
]
.
querySelectorAll
(
'input'
)
.
length
;
index
++
)
{
...
...
@@ -462,7 +468,7 @@
let
name
=
input
.
getAttributeNode
(
"name"
)
.
value
;
name
=
name
.
replace
(
"["
,
""
);
name
=
name
.
replace
(
"]"
,
""
);
input
.
getAttributeNode
(
"name"
)
.
value
=
name
+
'['
+
c
ln
.
children
.
length
+
']'
;
input
.
getAttributeNode
(
"name"
)
.
value
=
name
+
'['
+
c
ontador
+
']'
;
// input.getAttributeNode("disabled").value = " ";
let
select
=
cln
.
children
[
i
]
.
querySelectorAll
(
'select'
)[
index
];
if
(
select
){
...
...
@@ -470,7 +476,7 @@
selectName
=
selectName
.
replace
(
"["
,
""
);
selectName
=
selectName
.
replace
(
"]"
,
""
);
// console.log(select.getAttributeNode("name").value)
select
.
getAttributeNode
(
"name"
)
.
value
=
selectName
+
'['
+
c
ln
.
children
.
length
+
']'
;
select
.
getAttributeNode
(
"name"
)
.
value
=
selectName
+
'['
+
c
ontador
+
']'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment