Grund: Die Idee an sich sieht gut aus, hat aber im Moment technische Schwächen,
die erst mit Entwicklungen der nächsten Serie behoben sein werden. Da
Autocompletion bis dahin de facto wertlos ist fliegt es erstmal raus. Das
Javascript bleibt als Ressource weiter im Quelltext, wird aber nicht
ausgeliefert.
19 files changed:
$jsscript = qq|
<script type="text/javascript" src="js/jquery.js"></script>
$jsscript = qq|
<script type="text/javascript" src="js/jquery.js"></script>
- <script type='text/javascript' src='js/jquery.autocomplete.js'></script>
<script type="text/javascript" src="js/common.js"></script>
<style type="text/css">\@import url(js/jscalendar/calendar-win2k-1.css);</style>
<script type="text/javascript" src="js/jscalendar/calendar.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<style type="text/css">\@import url(js/jscalendar/calendar-win2k-1.css);</style>
<script type="text/javascript" src="js/jscalendar/calendar.js"></script>
show_empty = 1,
allow_textbox = 1,
-%]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="vendor"]', params => { vc => 'vendor' } },
-]
-%]
show_empty = 1,
allow_textbox = 1,
-%]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="vendor"]', params => { vc => 'vendor' } },
-]
-%]
show_empty = 1,
allow_textbox = 1,
-%]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="customer"]', params => { vc => 'customer' } },
-]
-%]
show_empty = 1,
allow_textbox = 1,
-%]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="customer"]', params => { vc => 'customer' } },
-]
-%]
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- IF ALL_SHIPTO.size %]
<tr>
[%- IF ALL_SHIPTO.size %]
<tr>
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- IF ALL_SHIPTO.size %]
<tr>
[%- IF ALL_SHIPTO.size %]
<tr>
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% vc | html %]')">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% vc | html %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
</td>
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% vc | html %]')">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% vc | html %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
</td>
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
</td>
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% HTML.escape(vc) %]')">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% HTML.escape(vc) %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
</td>
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
</td>
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
</td>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</tr>
[%- IF ALL_CONTACTS.size %]
<tr>
</tr>
[%- IF ALL_CONTACTS.size %]
<tr>
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% HTML.escape(vc) %]')">
</td>
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% HTML.escape(vc) %]')">
</td>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</tr>
[%- IF ALL_CONTACTS.size %]
<tr>
</tr>
[%- IF ALL_CONTACTS.size %]
<tr>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ic.pl', column => 'description', selector => '[name^="description_"]' },
- { script => 'ic.pl', column => 'partnumber', selector => '[name^="partnumber_"]' },
-]
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ic.pl', column => 'description', selector => '[name^="description_"]' },
- { script => 'ic.pl', column => 'partnumber', selector => '[name^="partnumber_"]' },
-]
-%]
show_empty = 1,
allow_textbox = 1,
-%]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
</tr>
[%- IF ALL_DEPARTMENTS.size %]
</td>
</tr>
[%- IF ALL_DEPARTMENTS.size %]
show_empty = 1,
allow_textbox = 1,
-%]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
</tr>
[%- IF ALL_DEPARTMENTS.size %]
</td>
</tr>
[%- IF ALL_DEPARTMENTS.size %]