diff --git a/views/customers/find.ctp b/views/customers/find.ctp index 5b79aac9..c5829cfc 100755 --- a/views/customers/find.ctp +++ b/views/customers/find.ctp @@ -7,7 +7,7 @@ echo $html->image('system-search.png'); echo ''; - 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')); diff --git a/webroot/js/findcustomer.js b/webroot/js/findcustomer.js index a2aa1f98..71d072b0 100644 --- a/webroot/js/findcustomer.js +++ b/webroot/js/findcustomer.js @@ -11,7 +11,7 @@ $(function() { $("#customerName").autocomplete({ source: "/customers/completeCustomer", - minLength: 2, + minLength: 3, select: function(event, ui) { $("#CustomerId").val(ui.item.id); }