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();
|
var userID = $('#userID').text();
|
||||||
|
|
||||||
$.get('/enquiries/view_user_enquiries/'+userID, function(data) {
|
|
||||||
$('#enquiryTable').html(data);
|
var enquiriesURL = '/enquiries/view_user_enquiries/'+userID;
|
||||||
$('#enquiryTable').slideDown('fast');
|
|
||||||
|
getPage(enquiriesURL);
|
||||||
|
|
||||||
|
|
||||||
|
$("div.paging > a, div.paging > span > a").live('click',function() {
|
||||||
|
destination = $(this).attr('href');
|
||||||
|
getPage(destination);
|
||||||
|
return false;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('#hide').click(function() {
|
$('#hide').click(function() {
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$('#show').show();
|
$('#show').show();
|
||||||
|
|
||||||
$('#enquiryTable').slideUp('fast');
|
$('#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