From a7959a7d3004a9ac340b39c11181c93ab843f65d 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 Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer (cherry picked from commit 1137793e44ce6b5d2a4e7759e46218f6ddeb9e8b) Signed-off-by: Fridolin Somers (cherry picked from commit dcddcda37d1efb586cb75a89df4ad6af0bf438ee) Signed-off-by: Lucas Gass --- 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 a1732b106d..3e2fcb8028 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -415,7 +415,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(); @@ -435,7 +435,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.5