diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2012-02-14 16:28:10 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2012-02-14 16:28:10 +0100 |
commit | 549c920e6f0e1bf6c92dc13d7903173fabbb88ff (patch) | |
tree | 7a52862d42f4ab7914ea25b70cba4c5e6d8e53d1 /view/event_head.tpl | |
parent | 22cfb77173b1093028c1706f6c513a040ad89967 (diff) | |
download | volse-hubzilla-549c920e6f0e1bf6c92dc13d7903173fabbb88ff.tar.gz volse-hubzilla-549c920e6f0e1bf6c92dc13d7903173fabbb88ff.tar.bz2 volse-hubzilla-549c920e6f0e1bf6c92dc13d7903173fabbb88ff.zip |
events js: don't modify rendered item if not autor specified
Diffstat (limited to 'view/event_head.tpl')
-rwxr-xr-x | view/event_head.tpl | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/view/event_head.tpl b/view/event_head.tpl index 69a901068..498ac9941 100755 --- a/view/event_head.tpl +++ b/view/event_head.tpl @@ -22,19 +22,20 @@ }, eventRender: function(event, element, view) { - console.log(view.name); + //console.log(view.name); + if (event.item['author-name']==null) return; switch(view.name){ case "month": - element.find(".fc-event-title").html( - "<img src='{0}' style='height:10px'>{1} : {2}".format( + element.find(".fc-event-title").html( + "<img src='{0}' style='height:10px;width:10px'>{1} : {2}".format( event.item['author-avatar'], event.item['author-name'], event.title )); break; case "agendaWeek": - element.find(".fc-event-title").html( - "<img src='{0}' style='height:12px'>{1}<p>{2}</p><p>{3}</p>".format( + element.find(".fc-event-title").html( + "<img src='{0}' style='height:12px; width:12px'>{1}<p>{2}</p><p>{3}</p>".format( event.item['author-avatar'], event.item['author-name'], event.item.desc, @@ -42,8 +43,8 @@ )); break; case "agendaDay": - element.find(".fc-event-title").html( - "<img src='{0}' style='height:24px'>{1}<p>{2}</p><p>{3}</p>".format( + element.find(".fc-event-title").html( + "<img src='{0}' style='height:24px;width:24px'>{1}<p>{2}</p><p>{3}</p>".format( event.item['author-avatar'], event.item['author-name'], event.item.desc, |