From f4c510e0c97837fe8479f9e5e9b4bf391bd38b8d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 24 Jul 2020 08:30:27 +0100 Subject: [PATCH] Bug 26041: Remove readonly flag This patch removes the readonly attribute from the date fields for 'reserve suspension' on the holds table and in opac-user. Note: I could not find where the readonly attribute is added to the date fields used when places a reserver. Note: I'm not sure about this followup.. if you enter a date in the wrong format (American vs British for example) you might end up with a bad date being submitted which could either result in a nasty server error or the wrong date being used. Signed-off-by: Brandon J --- koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc index 610c968649..fe9466ee80 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc @@ -206,7 +206,7 @@ [% IF AutoResumeSuspendedHolds %] - + Clear date to suspend indefinitely [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 5e72d21891..4e8123822f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -785,7 +785,6 @@ $(document).ready(function(){ $('#opac-user-views').tabs(); $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); - $(".suspend-until").prop("readonly",1); $(".btn-delete-hold").on("click", function(e){ e.preventDefault(); -- 2.17.1