From 956755fa152762facdf0564af9c4de5970f7ef55 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 8 May 2024 19:43:22 +0200 Subject: [PATCH] Revert "Bug 34263: Suspending holds consecutively populates previously used date falsely" Signed-off-by: Katrin Fischer --- 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 e7a4ffa829..ea9e354c94 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-modal-until").flatpickr().clear(); } ); + $("#suspend-modal-clear-date").on( "click", function() { $("#suspend-modal-until").val(""); } ); $("#suspend-modal-submit").on( "click", function( e ) { e.preventDefault(); @@ -440,7 +440,7 @@ $(document).ready(function() { } holdsTable.api().ajax.reload(); }).done(function() { - $("#suspend-modal-until").flatpickr().clear(); // clean the input + $("#suspend-modal-until").val(""); // clean the input $('#suspend-modal').modal('hide'); }); }); -- 2.39.5