Commit 2e9d2285 authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

FIX: add tooltip to calender event for full show title

parent cf0deeab
......@@ -38,6 +38,9 @@ export default {
shows: [],
timeslots: [],
calendarSlots: [],
// this is the whole configuration for our schedule calendar, including
// rendering functions and all
calendarConfig: {
height: 600,
firstDay: 1,
......@@ -54,6 +57,11 @@ export default {
allDaySlot: false,
},
},
// here we add a simple tooltip to every event, so that the full title
// of a show can be viewed
eventRender: function(event, element) {
element.attr('title', event.title);
},
},
loaded: {
show: false,
......@@ -99,11 +107,8 @@ export default {
headers: { 'Authorization': 'Bearer ' + this.$parent.$parent.user.access_token }
}).then(response => {
let slots = response.data
this.$log.debug(slots)
this.$log.debug('current show id: ' + this.show.id)
for (let i in slots) {
let highlighting = 'otherShow'
this.$log.debug(slots[i].show)
if (slots[i].show === this.show.id) {
highlighting = 'currentShow'
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment