Fixed Unstyled data for User Enquiries pages. Closes #31
This commit is contained in:
parent
7f20b6a0fd
commit
e7b53ced87
|
|
@ -10,17 +10,22 @@ $(function() {
|
|||
|
||||
var userID = $('#userID').text();
|
||||
|
||||
$.get('/enquiries/view_user_enquiries/'+userID, function(data) {
|
||||
$('#enquiryTable').html(data);
|
||||
$('#enquiryTable').slideDown('fast');
|
||||
|
||||
var enquiriesURL = '/enquiries/view_user_enquiries/'+userID;
|
||||
|
||||
getPage(enquiriesURL);
|
||||
|
||||
|
||||
$("div.paging > a, div.paging > span > a").live('click',function() {
|
||||
destination = $(this).attr('href');
|
||||
getPage(destination);
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('#hide').click(function() {
|
||||
$(this).hide();
|
||||
$('#show').show();
|
||||
|
||||
$('#enquiryTable').slideUp('fast');
|
||||
});
|
||||
|
||||
|
|
@ -36,4 +41,13 @@ $(function() {
|
|||
});
|
||||
|
||||
|
||||
function getPage(url) {
|
||||
$.get(url, function(data) {
|
||||
$('#enquiryTable').html(data);
|
||||
$('#enquiryTable').slideDown('fast');
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
Loading…
Reference in a new issue