Bug 34263: (QA follow-up): Use flatpickr .clear instead

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-05-03 14:22:13 +00:00 committed by Katrin Fischer
parent e02311e556
commit a459d5d6ef
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ $(document).ready(function() {
</div>\
");
$("#suspend-modal-clear-date").on( "click", function() { $(".suspend-until").val(""); } );
$("#suspend-modal-clear-date").on( "click", function() { $("#suspend-modal-until").flatpickr().clear(); } );
$("#suspend-modal-submit").on( "click", function( e ) {
e.preventDefault();
@ -440,7 +440,7 @@ $(document).ready(function() {
}
holdsTable.api().ajax.reload();
}).done(function() {
$(".suspend-until").val(""); // clean the input
$("#suspend-modal-until").flatpickr().clear(); // clean the input
$('#suspend-modal').modal('hide');
});
});