improve event rendering
This commit is contained in:
parent
c407e72dcc
commit
8a269823d2
@ -71,30 +71,32 @@
|
||||
switch(view.name){
|
||||
case "month":
|
||||
element.find(".fc-title").html(
|
||||
"<img src='{0}' style='height:10px;width:10px'> {1}: {2}".format(
|
||||
"<img src='{0}' style='height:12px;width:12px;' title='{1}'> <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".format(
|
||||
event.item['author']['xchan_photo_s'],
|
||||
event.item['author']['xchan_name'],
|
||||
event.title
|
||||
event.title,
|
||||
event.item.description,
|
||||
event.item.location.replace(/(<([^>]+)>)/ig,"")
|
||||
));
|
||||
break;
|
||||
case "agendaWeek":
|
||||
element.find(".fc-title").html(
|
||||
"<img src='{0}' style='height:10px; width:10px'> {1}: {2}<p>{3}</p><p>{4}</p>".format(
|
||||
"<img src='{0}' style='height:12px;width:12px;'> {1}: <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".format(
|
||||
event.item['author']['xchan_photo_s'],
|
||||
event.item['author']['xchan_name'],
|
||||
event.title,
|
||||
event.item.description,
|
||||
event.item.location
|
||||
event.item.location.replace(/(<([^>]+)>)/ig,"")
|
||||
));
|
||||
break;
|
||||
case "agendaDay":
|
||||
element.find(".fc-title").html(
|
||||
"<img src='{0}' style='height:10px;width:10px'> {1}: {2}<p>{3}</p><p>{4}</p>".format(
|
||||
"<img src='{0}' style='height:12px;width:12px;'> {1}: <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".format(
|
||||
event.item['author']['xchan_photo_s'],
|
||||
event.item['author']['xchan_name'],
|
||||
event.title,
|
||||
event.item.description,
|
||||
event.item.location
|
||||
event.item.location.replace(/(<([^>]+)>)/ig,"")
|
||||
));
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user