Línea 221... |
Línea 221... |
221 |
editableSpan.dataset.oldContent = editableSpan.innerHTML;
|
221 |
editableSpan.dataset.oldContent = editableSpan.innerHTML;
|
222 |
getString('edittitleinstructions')
|
222 |
getString('edittitleinstructions')
|
223 |
.then((instructions) => {
|
223 |
.then((instructions) => {
|
224 |
const uniqueId = 'gi-edit-input-' + editableSpan.closest('tr').dataset.quizGradeItemId;
|
224 |
const uniqueId = 'gi-edit-input-' + editableSpan.closest('tr').dataset.quizGradeItemId;
|
225 |
editableSpan.innerHTML = '<span class="editinstructions">' + instructions + '</span>' +
|
225 |
editableSpan.innerHTML = '<span class="editinstructions">' + instructions + '</span>' +
|
226 |
'<label class="sr-only" for="' + uniqueId + '">' + editableSpan.dataset.editLabel + '</label>' +
|
226 |
'<label class="visually-hidden" for="' + uniqueId + '">' + editableSpan.dataset.editLabel + '</label>' +
|
227 |
'<input type="text" id="' + uniqueId + '" value="' + editableSpan.dataset.rawName +
|
227 |
'<input type="text" id="' + uniqueId + '" value="' + editableSpan.dataset.rawName +
|
228 |
'" class="ignoredirty form-control w-100">';
|
228 |
'" class="ignoredirty form-control w-100">';
|
Línea 229... |
Línea 229... |
229 |
|
229 |
|
230 |
const inputElement = editableSpan.querySelector('input');
|
230 |
const inputElement = editableSpan.querySelector('input');
|