diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2016-08-25 12:05:19 +0200 |
---|---|---|
committer | maxbr <maxbr@mi.fu-berlin.de> | 2016-08-25 12:05:19 +0200 |
commit | 4ef923cbe9d4d4f3348657389661ffa99e89f919 (patch) | |
tree | add3d8cb4adedb250326ba3e2e6f4926dd5073bc /tools/pharos-dashboard/static/js/fullcalendar-options.js | |
parent | c1de4c940288ef0ec1a5132b30aff74efb0afbcd (diff) |
Add a Booking detail view
JIRA: RELENG-12
This adds a pop-up to the booking calendar, containing information
about a selected booking.
Change-Id: Ie780006963cb927d073103edbaefbdab3de403fb
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'tools/pharos-dashboard/static/js/fullcalendar-options.js')
-rw-r--r-- | tools/pharos-dashboard/static/js/fullcalendar-options.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/pharos-dashboard/static/js/fullcalendar-options.js b/tools/pharos-dashboard/static/js/fullcalendar-options.js index c57baa6f..f4fa50b3 100644 --- a/tools/pharos-dashboard/static/js/fullcalendar-options.js +++ b/tools/pharos-dashboard/static/js/fullcalendar-options.js @@ -62,6 +62,23 @@ var calendarOptions = { tmpevent = undefined; } } + + // tmpevent is deleted if a real event is clicked, load event details + if (tmpevent == undefined) { + var booking_detail_url = booking_detail_prefix + event.id; + + $.ajax({ + url: booking_detail_url, + type: 'get', + success: function (data) { + $('#booking_detail_content').html(data); + }, + failure: function (data) { + alert('Error loading booking details'); + } + }); + $('#booking_detail_modal').modal('show'); + } }, eventDrop: function (event) { |