From 3d75e0b73badc5b3adb1f16cf6b189f92daf20ec Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 3 May 2024 14:22:13 +0000 Subject: [PATCH] Bug 34263: QA follow-up: Use flatpickr .clear instead Signed-off-by: Pedro Amorim --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 6bd669b843..e7a4ffa829 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -420,7 +420,7 @@ $(document).ready(function() { \ "); - $("#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'); }); }); -- 2.39.2