custom prompts row cancel and edit again fixed. the values are now set to the saved ones
This commit is contained in:
parent
6cc0a63b94
commit
01f5376bd8
1 changed files with 7 additions and 0 deletions
|
|
@ -349,6 +349,13 @@ function handleCancelClick(e) {
|
|||
// tr.querySelector('.btnCancelItem').style.display = 'none'; // Cancel btn
|
||||
tr.querySelector('.btnEditItem').style.display = 'inline'; // Edit btn
|
||||
tr.querySelector('.btnDeleteItem').style.display = 'inline'; // Delete btn
|
||||
tr.querySelector('.id_output').value = tr.querySelector('.id_show').innerText.toLocaleUpperCase();
|
||||
tr.querySelector('.name_output').value = tr.querySelector('.name_show').innerText;
|
||||
tr.querySelector('.text_output').value = tr.querySelector('.text_show').innerText;
|
||||
tr.querySelector('.type_output').value = tr.querySelector('.type').innerText;
|
||||
// tr.querySelector('.type_output').selectedOptions[0].text = tr.querySelector('.type_show').innerText;
|
||||
tr.querySelector('.action_output').value = tr.querySelector('.action').innerText;
|
||||
// tr.querySelector('.action_output').selectedOptions[0].text = tr.querySelector('.action_show').innerText;
|
||||
hideItemRowEditor(tr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue