Minor changes to find customer. Testing to see how it works on the live copy

This commit is contained in:
Karl Cordes 2010-03-30 09:24:17 +11:00
parent b6a6e0af28
commit 9c274c318b
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
echo $html->image('system-search.png'); echo $html->image('system-search.png');
echo '</h2>'; echo '</h2>';
echo $form->input('Customer.name', array('Label'=>'Customer Name', 'id'=>'customerName')); echo $form->input('Customer.name', array('Label'=>'Customer Name', 'id'=>'customerName', 'div'=>'ui-widget'));
echo $form->input('Customer.id', array('type'=>'hidden')); echo $form->input('Customer.id', array('type'=>'hidden'));

View file

@ -11,7 +11,7 @@ $(function() {
$("#customerName").autocomplete({ $("#customerName").autocomplete({
source: "/customers/completeCustomer", source: "/customers/completeCustomer",
minLength: 2, minLength: 3,
select: function(event, ui) { select: function(event, ui) {
$("#CustomerId").val(ui.item.id); $("#CustomerId").val(ui.item.id);
} }