- javascript kalender für die Datumsfelder gefixt.
- ajax aktualisiert jetzt auch bei änderungen der datumsfelder.
<script type="text/javascript">
<!--
- Calendar.setup({ inputField : "fromB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
- Calendar.setup({ inputField : "toB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
+ Calendar.setup({ inputField : "from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
+ Calendar.setup({ inputField : "to", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto'); if (s) s.disabled = (used > 0 ? true : false); }
<script type="text/javascript">
<!--
- Calendar.setup({ inputField : "fromB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
- Calendar.setup({ inputField : "toB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
+ Calendar.setup({ inputField : "from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
+ Calendar.setup({ inputField : "to", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto'); if (s) s.disabled = (used > 0 ? true : false); }
</tr>
<tr>
- <th align="left" nowrap>Von</th>
+ <th align="right" nowrap>Von</th>
<td>
- <input id="from" name="from" size="10" maxlength="10" value="[% HTML.escape(from) %]">
+ <input id="from" name="from" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + this.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(from) %]">
<input type="button" name="fromB" id="trigger_from" value="?">
</td>
- <th align="left" nowrap>Bis</th>
+ <th align="right" nowrap>Bis</th>
<td>
- <input id="to" name="to" size="10" maxlength="10" value="[% HTML.escape(to) %]">
+ <input id="to" name="to" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + from.value, 'to__' + this.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(to) %]">
<input type="button" name="toB" id="trigger_to" value="?">
</td>
</tr>
</tr>
<tr>
- <th align="left" nowrap><translate>From</translate></th>
+ <th align="right" nowrap><translate>From</translate></th>
<td>
- <input id="from" name="from" size="10" maxlength="10" value="[% HTML.escape(from) %]">
+ <input id="from" name="from" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + this.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(from) %]">
<input type="button" name="fromB" id="trigger_from" value="?">
</td>
- <th align="left" nowrap><translate>To (time)</translate></th>
+ <th align="right" nowrap><translate>To (time)</translate></th>
<td>
- <input id="to" name="to" size="10" maxlength="10" value="[% HTML.escape(to) %]">
+ <input id="to" name="to" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + from.value, 'to__' + this.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(to) %]">
<input type="button" name="toB" id="trigger_to" value="?">
</td>
</tr>