From 01dfc91cee82ac89d1b03fd81577a4c1f34b47e6 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Thu, 17 Mar 2011 11:19:37 +1100 Subject: [PATCH] AJAXified the enquiry index --- views/enquiries/index.ctp | 10 +++++++--- views/users/view_user.ctp | 8 -------- webroot/js/ajax_pagination.js | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/views/enquiries/index.ctp b/views/enquiries/index.ctp index f5f0a444..32dec63b 100755 --- a/views/enquiries/index.ctp +++ b/views/enquiries/index.ctp @@ -1,5 +1,9 @@ -
-

-element('enquiry_table', $enquiries, $status_list, array('cache'=>'+1 day')); ?> + +
+
+

+ + element('enquiry_table', $enquiries, $status_list, array('cache'=>'+1 day')); ?> +
diff --git a/views/users/view_user.ctp b/views/users/view_user.ctp index e240d383..3a242307 100644 --- a/views/users/view_user.ctp +++ b/views/users/view_user.ctp @@ -41,13 +41,5 @@
- - element('enquiry_table', $user['Enquiry']); - } - else { - echo "No Enquiries for this User"; - } - ?>
diff --git a/webroot/js/ajax_pagination.js b/webroot/js/ajax_pagination.js index f446e521..1213a47b 100644 --- a/webroot/js/ajax_pagination.js +++ b/webroot/js/ajax_pagination.js @@ -18,7 +18,7 @@ $(function() { return false; - }) + }); });