Commit f26f9343 authored by Mat's avatar Mat
Browse files

encore plus propre, utiliser dataset

parent 3caf6d52
......@@ -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');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment