mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-20 06:37:59 +01:00
ensure inputs to be reenabled have an enable-with attribute
This commit is contained in:
parent
5734deee85
commit
d76f1d6fdb
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ function formRemote(event, target) {
|
|||
}
|
||||
|
||||
function formReset(event, target) {
|
||||
$$('[disabled][data-disable-with]', target).forEach(input => {
|
||||
$$('[disabled][data-disable-with][data-enable-with]', target).forEach(input => {
|
||||
const label = findFirstTextNode(input);
|
||||
if (label) {
|
||||
label.nodeValue = ` ${input.dataset.enableWith}`;
|
||||
|
|
Loading…
Reference in a new issue