Lines 784-790
Link Here
|
784 |
if ( !bookings_table ) { |
784 |
if ( !bookings_table ) { |
785 |
var today = new Date(); |
785 |
var today = new Date(); |
786 |
var bookings_table_url = "/api/v1/bookings"; |
786 |
var bookings_table_url = "/api/v1/bookings"; |
787 |
bookings_table = $('#bookings-table').kohaTable({ |
787 |
bookings_table = $('#bookings_table').kohaTable({ |
788 |
"ajax": { |
788 |
"ajax": { |
789 |
"url": bookings_table_url |
789 |
"url": bookings_table_url |
790 |
}, |
790 |
}, |
Lines 796-804
Link Here
|
796 |
"columns": [{ |
796 |
"columns": [{ |
797 |
"data": "booking_id", |
797 |
"data": "booking_id", |
798 |
"title": "Booking ID", |
798 |
"title": "Booking ID", |
799 |
"visible": false, |
799 |
"visible": false |
800 |
"searchable": false, |
|
|
801 |
"orderable": false |
802 |
}, |
800 |
}, |
803 |
{ |
801 |
{ |
804 |
"data": "biblio.title", |
802 |
"data": "biblio.title", |
Lines 829-835
Link Here
|
829 |
"searchable": true, |
827 |
"searchable": true, |
830 |
"orderable": true, |
828 |
"orderable": true, |
831 |
"render": function(data, type, row, meta) { |
829 |
"render": function(data, type, row, meta) { |
832 |
return $datetime(row.start_date); |
830 |
return $date(row.start_date); |
833 |
} |
831 |
} |
834 |
}, |
832 |
}, |
835 |
{ |
833 |
{ |
Lines 838-844
Link Here
|
838 |
"searchable": true, |
836 |
"searchable": true, |
839 |
"orderable": true, |
837 |
"orderable": true, |
840 |
"render": function(data, type, row, meta) { |
838 |
"render": function(data, type, row, meta) { |
841 |
return $datetime(row.end_date); |
839 |
return $date(row.end_date); |
842 |
} |
840 |
} |
843 |
}, |
841 |
}, |
844 |
{ |
842 |
{ |
Lines 851-857
Link Here
|
851 |
return result; |
849 |
return result; |
852 |
} |
850 |
} |
853 |
}] |
851 |
}] |
854 |
}, [], 1, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
852 |
}, [], 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); |
855 |
}; |
853 |
}; |
856 |
}); |
854 |
}); |
857 |
// Bookings |
855 |
// Bookings |
858 |
- |
|
|