Skip to content

Commit

Permalink
form, date and time on change
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoclpf committed Jun 9, 2023
1 parent cc0c3c0 commit 013e96b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions www/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,14 @@ app.form = (function (thisModule) {
})
$('#date').datepicker()

$('#date, #time').on('input keyup keypress focusout', function () {
if ($(this).val() === '' && !DEBUG) {
$(this).css('border-color', 'red')
} else {
$(this).css('border-color', '')
}
})

/* ********************************************************************** */
/* ********************* LOCAL OF OCCURRENCE **************************** */
$('#locality').on('input', function () {
Expand Down

0 comments on commit 013e96b

Please sign in to comment.