Fixed broken Customer find
This commit is contained in:
parent
150cbc7079
commit
57cc410c59
|
|
@ -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');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -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');
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue