Lines 758-764
Link Here
|
758 |
if ( !bookings_table ) { |
758 |
if ( !bookings_table ) { |
759 |
var today = new Date(); |
759 |
var today = new Date(); |
760 |
var bookings_table_url = "/api/v1/bookings"; |
760 |
var bookings_table_url = "/api/v1/bookings"; |
761 |
bookings_table = $('#bookings-table').kohaTable({ |
761 |
bookings_table = $('#bookings_table').kohaTable({ |
762 |
"ajax": { |
762 |
"ajax": { |
763 |
"url": bookings_table_url |
763 |
"url": bookings_table_url |
764 |
}, |
764 |
}, |
Lines 770-778
Link Here
|
770 |
"columns": [{ |
770 |
"columns": [{ |
771 |
"data": "booking_id", |
771 |
"data": "booking_id", |
772 |
"title": "Booking ID", |
772 |
"title": "Booking ID", |
773 |
"visible": false, |
773 |
"visible": false |
774 |
"searchable": false, |
|
|
775 |
"orderable": false |
776 |
}, |
774 |
}, |
777 |
{ |
775 |
{ |
778 |
"data": "biblio.title", |
776 |
"data": "biblio.title", |
Lines 803-809
Link Here
|
803 |
"searchable": true, |
801 |
"searchable": true, |
804 |
"orderable": true, |
802 |
"orderable": true, |
805 |
"render": function(data, type, row, meta) { |
803 |
"render": function(data, type, row, meta) { |
806 |
return $datetime(row.start_date); |
804 |
return $date(row.start_date); |
807 |
} |
805 |
} |
808 |
}, |
806 |
}, |
809 |
{ |
807 |
{ |
Lines 812-818
Link Here
|
812 |
"searchable": true, |
810 |
"searchable": true, |
813 |
"orderable": true, |
811 |
"orderable": true, |
814 |
"render": function(data, type, row, meta) { |
812 |
"render": function(data, type, row, meta) { |
815 |
return $datetime(row.end_date); |
813 |
return $date(row.end_date); |
816 |
} |
814 |
} |
817 |
}, |
815 |
}, |
818 |
{ |
816 |
{ |
Lines 825-831
Link Here
|
825 |
return result; |
823 |
return result; |
826 |
} |
824 |
} |
827 |
}] |
825 |
}] |
828 |
}, [], 1, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
826 |
}, [], 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
829 |
}; |
827 |
}; |
830 |
}); |
828 |
}); |
831 |
// Bookings |
829 |
// Bookings |
832 |
- |
|
|