]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Kunde/Lieferant -> Lieferungen:
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 20 May 2009 12:28:35 +0000 (12:28 +0000)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 20 May 2009 12:28:35 +0000 (12:28 +0000)
- javascript kalender für die Datumsfelder gefixt.
- ajax aktualisiert jetzt auch bei änderungen der datumsfelder.

templates/webpages/ct/form_footer_de.html
templates/webpages/ct/form_footer_master.html
templates/webpages/ct/form_header_de.html
templates/webpages/ct/form_header_master.html

index dea6f2c1227a360d4c4e1ba29ac7d2554f96bbc7..2f7546b296825da42b9d492e5aea600e87f9c983 100644 (file)
@@ -33,8 +33,8 @@
 
  <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); }
index 532b3612909567833ae6fdc58d49f464e2312b02..cf536179cf23b781f47aef2be2ddd24f60bf4c71 100644 (file)
@@ -33,8 +33,8 @@
 
  <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); }
index 975a1bf21cb0a00c25d50d2554b2b5c9efb45761..45fb81fb9c4fdb0e7e9004c514d91c5ad9dd402b 100644 (file)
      </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>
index e4d98a08893ade97e545a58d8b41eef69b3a5880..c40d3a2f060f0f82fc1732bd6ea45301af1f8253 100644 (file)
      </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>