all repos — cameraman @ eb9b7cafaf94115452f4ddb35a7269a2045743c3

disable notified checkbox if it's not enabled
BiRabittoh andronacomarco@gmail.com
Thu, 30 May 2024 13:03:37 +0200
commit

eb9b7cafaf94115452f4ddb35a7269a2045743c3

parent

d8fa5a3117dc6aed01befba0e8a52c726bd94d6b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M templates/index.htmltemplates/index.html

@@ -210,7 +210,7 @@ <td><input class="big-input" type="text" value="${name || ''}" id="name-${id}"></td>

<td><input class="big-input" type="text" value="${description || ''}" id="description-${id}"></td> <td class="date-inputs"><input type="number" value="${day || ''}" id="day-${id}" class="small-input" min="1" max="31" onchange="this.value = padNumber(this.value);"> / <input type="number" value="${month || ''}" id="month-${id}" class="small-input" min="1" max="12" onchange="this.value = padNumber(this.value);"></td> <td><input type="checkbox" id="notify-${id}" ${notify ? 'checked' : ''}></td> - <td><input type="checkbox" id="notified-${id}" ${notified ? 'checked' : ''}></td> + <td><input type="checkbox" id="notified-${id}" ${notified ? 'checked' : 'disabled'}></td> <td class="actions"> ${isNew ? '' : ` <i class="fas fa-save" title="Save" onclick="saveOccurrence(${id})"></i>