frio: stop the custom cal rendering (if no author-name exist) only for the modes agendaWeek and agendaDay

This commit is contained in:
rabuzarus 2016-10-17 22:14:12 +02:00
parent 88f1affb2f
commit 430ffb792e

View File

@ -38,7 +38,6 @@ $(document).ready(function() {
aspectRatio: 1,
eventRender: function(event, element, view) {
//console.log(view.name);
if (event.item['author-name'] == null) return;
switch(view.name){
case "month":
element.find(".fc-title").html(
@ -51,6 +50,7 @@ $(document).ready(function() {
));
break;
case "agendaWeek":
if (event.item['author-name'] == null) return;
element.find(".fc-title").html(
"<img src='{0}' style='height:12px; width:12px'>{1}<p>{2}</p><p>{3}</p>".format(
event.item['author-avatar'],
@ -60,6 +60,7 @@ $(document).ready(function() {
));
break;
case "agendaDay":
if (event.item['author-name'] == null) return;
element.find(".fc-title").html(
"<img src='{0}' style='height:24px;width:24px'>{1}<p>{2}</p><p>{3}</p>".format(
event.item['author-avatar'],