From 41743bb832f69f91291ff97ed223bb55f466b947 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Tue, 26 Jan 2016 12:40:11 +0100 Subject: [PATCH] Bug 15643 - Every datepicker on serials expected date column updates top issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit delete 'expected' and 'supexpected' ids that don't seem useful anymore. Same thing for changeDate2 function Test plan : 1) Search a serial subscription from the Serials Home page 2)Go to serial collection page and make sure it has a mimimal bunch of already received or missing issues 3)Check some received issues to be sure to get extra issues (not only the extected one) in the serial edition page 4) Click on Edit serials button 5) Try to modify whatever date in 'Expected on' column (excepted first one) using datepicker : You can see that the top date of the column is updated instead of the choosen one. 6) Apply patch and redo 1 to 5 steps : now the right date is updated. Followed test plan, works as expected. Signed-off-by: Marc VĂ©ron Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt index 8a4081a..23f0bdc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt @@ -41,11 +41,7 @@ function setStatus(serialid){ $("#status"+serialid).val("2").attr("selected","selected"); } function changeDate(elem, adate) { - $(elem).closest('tr').find('#expecteddate').val(adate); -} -function changeDate2(adate) { - var elem = document.getElementById("supexpecteddate"); - elem.value = adate; + $(elem).closest('tr').find('[name=planneddate]').val(adate); } $(document).ready(function() { @@ -139,7 +135,7 @@ $(document).ready(function() { - + [% IF ( serialslis.editdisable ) %] @@ -296,10 +292,10 @@ $(document).ready(function() { - + - [% IF ( newserialloo.status1 ) %] -- 2.1.0