Minor changes to find customer. Testing to see how it works on the live copy
This commit is contained in:
parent
b6a6e0af28
commit
9c274c318b
|
|
@ -7,7 +7,7 @@
|
|||
echo $html->image('system-search.png');
|
||||
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'));
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ $(function() {
|
|||
|
||||
$("#customerName").autocomplete({
|
||||
source: "/customers/completeCustomer",
|
||||
minLength: 2,
|
||||
minLength: 3,
|
||||
select: function(event, ui) {
|
||||
$("#CustomerId").val(ui.item.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue