Bugzilla – Attachment 47302 Details for
Bug 15643
Every datepicker on serials expected date column updates top issue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15643 - Every datepicker on serials expected date column updates top issue
0001-Bug-15643-Every-datepicker-on-serials-expected-date-.patch (text/plain), 3.63 KB, created by
Koha Team University Lyon 3
on 2016-01-26 12:22:46 UTC
(
hide
)
Description:
Bug 15643 - Every datepicker on serials expected date column updates top issue
Filename:
MIME Type:
Creator:
Koha Team University Lyon 3
Created:
2016-01-26 12:22:46 UTC
Size:
3.63 KB
patch
obsolete
>From 51edbc16892dc5e24094e0445add2f1be8a12a72 Mon Sep 17 00:00:00 2001 >From: Lyon3 Team <koha@univ-lyon3.fr> >Date: Tue, 26 Jan 2016 12:40:11 +0100 >Subject: [PATCH] Bug 15643 - Every datepicker on serials expected date column > updates top issue > >delete 'expected' and 'supexpected' ids that don't seem useful anymore. >Same thing for changeDate2 function >--- > .../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() { > <input type="text" name="publisheddatetext" value="[% serialslis.publisheddatetext %]" size="10" maxlength="100" /> > </td> > <td> >- <input type="text" id="expecteddate" name="planneddate" value="[% serialslis.planneddate %]" size="10" maxlength="15" class="datepicker" /> >+ <input type="text" name="planneddate" value="[% serialslis.planneddate %]" size="10" maxlength="15" class="datepicker" /> > </td> > <td> > [% IF ( serialslis.editdisable ) %] >@@ -296,10 +292,10 @@ $(document).ready(function() { > <input type="text" name="publisheddatetext" value="[% newserialloo.publisheddatetext %]" size="10" maxlength="100" /> > </td> > <td> >- <input type="text" name="planneddate" id="supexpecteddate" value="[% newserialloo.planneddate %]" size="10" maxlength="15" class="datepicker" /> >+ <input type="text" name="planneddate" value="[% newserialloo.planneddate %]" size="10" maxlength="15" class="datepicker" /> > </td> > <td> >- <select name="status" size="1" id="addstatus[% newserialloo.serialid %]" onchange="if (this.value==2){unHideItems('items'+'[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]','[% newserialloo.serialid %]'); changeDate2('[% newserialloo.arriveddate %]')} else if (this.value==7){changeDate('[% newserialloo.arriveddate %]')} else { HideItems('items'+'[% newserialloo.subscriptionid %]'+[% newserialloo.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate2('[% serialslis.planneddate %]')}" > >+ <select name="status" size="1" id="addstatus[% newserialloo.serialid %]" onchange="if (this.value==2){unHideItems('items'+'[% newserialloo.subscriptionid %][% newserialloo.serialid %]','label[% newserialloo.subscriptionid %][% newserialloo.serialid %]','[% newserialloo.serialid %]'); changeDate(this, '[% newserialloo.arriveddate %]')} else if (this.value==7){changeDate(this, '[% newserialloo.arriveddate %]')} else { HideItems('items'+'[% newserialloo.subscriptionid %]'+[% newserialloo.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}" > > > <option value="">----</option> > [% IF ( newserialloo.status1 ) %] >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15643
:
47162
|
47302
|
47371
|
47456