Lines 61-69
function HideItems(index,labelindex) {
Link Here
|
61 |
function setStatus(serialid){ |
61 |
function setStatus(serialid){ |
62 |
$("#status"+serialid).val("2").attr("selected","selected"); |
62 |
$("#status"+serialid).val("2").attr("selected","selected"); |
63 |
} |
63 |
} |
64 |
function changeDate(adate) { |
64 |
function changeDate(elem, adate) { |
65 |
var elem = document.getElementById("expecteddate"); |
65 |
$(elem).closest('tr').find('#expecteddate').val(adate); |
66 |
elem.value = adate; |
|
|
67 |
} |
66 |
} |
68 |
function changeDate2(adate) { |
67 |
function changeDate2(adate) { |
69 |
var elem = document.getElementById("supexpecteddate"); |
68 |
var elem = document.getElementById("supexpecteddate"); |
Lines 228-236
$(document).ready(function() {
Link Here
|
228 |
<select name="status" size="1" disabled="disabled"> |
227 |
<select name="status" size="1" disabled="disabled"> |
229 |
[% ELSE %] |
228 |
[% ELSE %] |
230 |
[% IF ( serialslis.serialsadditems ) %] |
229 |
[% IF ( serialslis.serialsadditems ) %] |
231 |
<select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid %][% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]','[% serialslis.serialid %]'); changeDate('[% serialslis.arriveddate %]')} else if (this.value==7){changeDate('[% serialslis.arriveddate %]')} else { HideItems('items'+[% serialslis.subscriptionid %]+[% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate('[% serialslis.planneddate %]')}" > |
230 |
<select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid %][% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]','[% serialslis.serialid %]'); changeDate(this, '[% serialslis.arriveddate %]')} else if (this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else { HideItems('items'+[% serialslis.subscriptionid %]+[% serialslis.serialid %],'label[% serialslis.subscriptionid %][% serialslis.serialid %]'); changeDate(this, '[% serialslis.planneddate %]')}" > |
232 |
[% ELSE %] |
231 |
[% ELSE %] |
233 |
<select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2 || this.value==7){changeDate('[% serialslis.arriveddate %]')} else {changeDate('[% serialslis.planneddate %]')}" > |
232 |
<select name="status" size="1" id="status[% serialslis.serialid %]" onchange="if (this.value==2 || this.value==7){changeDate(this, '[% serialslis.arriveddate %]')} else {changeDate(this, '[% serialslis.planneddate %]')}" > |
234 |
[% END %] |
233 |
[% END %] |
235 |
[% END %] |
234 |
[% END %] |
236 |
[% IF ( serialslis.status1 ) %] |
235 |
[% IF ( serialslis.status1 ) %] |
237 |
- |
|
|