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
mathieu
technobel.sf
Commits
f26f9343
Commit
f26f9343
authored
May 17, 2018
by
Mat
Browse files
encore plus propre, utiliser dataset
parent
3caf6d52
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/TechnoBundle/Resources/views/Ajax/Owner/mainDisplay.html.twig
View file @
f26f9343
...
...
@@ -97,7 +97,7 @@
let
td4
=
document
.
createElement
(
'
td
'
);
let
editBtn
=
document
.
createElement
(
'
button
'
);
editBtn
.
setAttribute
(
'
data-owner-id
'
,
json
[
i
].
id
)
;
editBtn
.
dataset
.
ownerId
=
json
[
i
].
id
;
// W3C cette notation est conseillée pour un attr custom
editBtn
.
innerHTML
=
'
<i class="fas fa-edit fa-fw"></i> Editer
'
;
editBtn
.
classList
.
add
(
'
btn
'
,
'
btn-primary
'
);
...
...
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