Fixed broken Customer find

This commit is contained in:
Karl Cordes 2010-03-18 09:51:35 +11:00
parent 150cbc7079
commit 57cc410c59
4 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
<?php echo $javascript->link('autocomplete-customer'); ?> <?php echo $javascript->link('findcustomer'); ?>
<div class="customers form"> <div class="customers form">
<?php echo $this->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'")); ?> <?php echo $this->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'")); ?>
<?php echo $form->create('Customer', array('action'=>'find')); <?php echo $form->create('Customer', array('action'=>'find'));
@ -9,6 +9,8 @@
echo $form->input('Customer.name', array('Label'=>'Customer Name', 'id'=>'customerName')); echo $form->input('Customer.name', array('Label'=>'Customer Name', 'id'=>'customerName'));
echo $form->input('Customer.id', array('type'=>'hidden'));
echo $form->end('Find'); echo $form->end('Find');
?> ?>

View file

@ -17,8 +17,6 @@
echo $javascript->link('ckeditor/ckeditor'); echo $javascript->link('ckeditor/ckeditor');
echo $javascript->link('jquery'); echo $javascript->link('jquery');
echo $javascript->link('jquery-ui'); echo $javascript->link('jquery-ui');

View file

@ -1,8 +1,9 @@
/* /*
* autocomplete-customer.js * 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.
*/ */

View file

@ -1,10 +1,10 @@
$(function() { $(function() {
$('#nav li').hover( $('#nav li').hover(
function() { function() {
$('ul', this).slideDown(100); //show submenu $('ul', this).slideDown(50); //show submenu
}, },
function() { function() {
$('ul', this).slideUp(100); //hide submenu $('ul', this).slideUp(50); //hide submenu
}) })
}); });