From f0528664eeb04c923f4132f283de4bfa1e79153e Mon Sep 17 00:00:00 2001 From: "J. David Bavousett" Date: Tue, 11 May 2010 20:10:58 +1200 Subject: [PATCH] Bug 3928: Modification of date for serials. When a serial status is changed to "Arrived" or "Claimed", the "Expected on" date is changed to the current date. A bit of rewriting to get it to apply on master - chris@bigballowax.co.nz Signed-off-by: Galen Charlton --- .../prog/en/modules/serials/serials-edit.tmpl | 10 +++++++--- serials/serials-edit.pl | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl index 6548174e96..774247f5db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl @@ -81,6 +81,10 @@ function HideItems(index,labelindex) { label = document.getElementById(labelindex); label.style.display='block'; } +function changeDate(adate) { + var elem = document.getElementById("expecteddate"); + elem.value = adate; +} function CloneSubfield(index){ var original = document.getElementById(index); //original
var clone = original.cloneNode(true); @@ -210,7 +214,7 @@ function CloneSubfield(index){ " size="10" maxlength="15" /> - " size="10" maxlength="15" /> + " size="10" maxlength="15" /> @@ -218,9 +222,9 @@ function CloneSubfield(index){ " onchange="if (this.value==2){unHideItems('items'++,'label', '')} else { HideItems('items'++,'label')}" > + " > +