From 9c274c318bf1c41a6aefe66df9f75afa484e6e5f Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Tue, 30 Mar 2010 09:24:17 +1100 Subject: [PATCH] Minor changes to find customer. Testing to see how it works on the live copy --- views/customers/find.ctp | 2 +- webroot/js/findcustomer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }