AJAXified the enquiry index

This commit is contained in:
Karl Cordes 2011-03-17 11:19:37 +11:00
parent a00dbfdbf8
commit 01dfc91cee
3 changed files with 8 additions and 12 deletions

View file

@ -1,5 +1,9 @@
<div id="ajaxLoad" style="display:none;"><?php echo $html->image('ajax-loader.gif'); ?></div>
<div id="enquiryTable">
<div class="enquiriesindex">
<h2><?php __('Master Enquiry Register');?></h2>
<? echo $this->element('enquiry_table', $enquiries, $status_list, array('cache'=>'+1 day')); ?>
</div>
</div>

View file

@ -41,13 +41,5 @@
<div id="enquiryTable">
<? /* If there are enquiries for this user, render the enquiries table passing the $enquiries array */ ?>
<?php if (!empty($user['Enquiry'])) {
//echo $this->element('enquiry_table', $user['Enquiry']);
}
else {
echo "No Enquiries for this User";
}
?>
</div>
</div>

View file

@ -18,7 +18,7 @@ $(function() {
return false;
})
});
});