diff --git a/views/customers/find.ctp b/views/customers/find.ctp index 40e79d67..5b79aac9 100755 --- a/views/customers/find.ctp +++ b/views/customers/find.ctp @@ -1,5 +1,5 @@ -link('autocomplete-customer'); ?> +link('findcustomer'); ?>
element('tipbox', array('tip' => "Start typing the Company name into the box, a list of results should appear. Select the Customer you're looking for and click 'View'")); ?> create('Customer', array('action'=>'find')); @@ -9,6 +9,8 @@ echo $form->input('Customer.name', array('Label'=>'Customer Name', 'id'=>'customerName')); + echo $form->input('Customer.id', array('type'=>'hidden')); + echo $form->end('Find'); ?> diff --git a/views/layouts/default.ctp b/views/layouts/default.ctp index 1c4886d2..9c9c0a4a 100755 --- a/views/layouts/default.ctp +++ b/views/layouts/default.ctp @@ -17,8 +17,6 @@ echo $javascript->link('ckeditor/ckeditor'); - - echo $javascript->link('jquery'); echo $javascript->link('jquery-ui'); diff --git a/webroot/js/autocomplete-customer.js b/webroot/js/autocomplete-customer.js index f0019eaf..1e4fa6c5 100644 --- a/webroot/js/autocomplete-customer.js +++ b/webroot/js/autocomplete-customer.js @@ -1,8 +1,9 @@ /* * autocomplete-customer.js * + * used in customers/add.ctp * - * + * Not really an autocomplete, updates a dialog box with similar customer names to try and stop duplicate entries. */ diff --git a/webroot/js/menu.js b/webroot/js/menu.js index a2b46217..daf04a95 100644 --- a/webroot/js/menu.js +++ b/webroot/js/menu.js @@ -1,10 +1,10 @@ $(function() { $('#nav li').hover( function() { - $('ul', this).slideDown(100); //show submenu + $('ul', this).slideDown(50); //show submenu }, function() { - $('ul', this).slideUp(100); //hide submenu + $('ul', this).slideUp(50); //hide submenu }) });