jQuery-ifying the menu
This commit is contained in:
parent
c45b0f44df
commit
a6873f7823
|
|
@ -20,6 +20,7 @@ class LineItem extends AppModel {
|
||||||
var $belongsTo = array(
|
var $belongsTo = array(
|
||||||
'Quote' => array('className' => 'Quote',
|
'Quote' => array('className' => 'Quote',
|
||||||
'foreignKey' => 'quote_id',
|
'foreignKey' => 'quote_id',
|
||||||
|
'counterCache' => true,
|
||||||
'conditions' => '',
|
'conditions' => '',
|
||||||
'fields' => '',
|
'fields' => '',
|
||||||
'order' => ''
|
'order' => ''
|
||||||
|
|
@ -42,7 +43,7 @@ class LineItem extends AppModel {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var $order = "item_number ASC";
|
var $order = "LineItem.item_number ASC";
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
@ -57,7 +57,7 @@ foreach ($quote['QuotePage'] as $quotePage):
|
||||||
|
|
||||||
|
|
||||||
<div class="quoteproducts">
|
<div class="quoteproducts">
|
||||||
<h3><?php __('Products in this Quote');?></h3>
|
<h3><?php __($quote['Quote']['line_item_count'].' Items in this Quote');?></h3>
|
||||||
|
|
||||||
<div id="productTable"></div>
|
<div id="productTable"></div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,15 @@
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#customerName").autocomplete({
|
$("#customerName").autocomplete({
|
||||||
|
|
||||||
source: "/customers/completeCustomer",
|
source: "/customers/completeCustomer",
|
||||||
minLength: 1
|
minLength: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#CustomerCountryName").autocomplete({
|
$("#CustomerCountryName").autocomplete({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue