]> git.mxchange.org Git - friendica.git/commitdiff
frio: stop the custom cal rendering (if no author-name exist) only for the modes...
authorrabuzarus <>
Mon, 17 Oct 2016 20:14:12 +0000 (22:14 +0200)
committerrabuzarus <>
Mon, 17 Oct 2016 20:14:12 +0000 (22:14 +0200)
view/theme/frio/js/mod_events.js

index 0b6bb6e7b26716be6eaa99c5c1cb558f8979d1ef..7b06990fad05959480c2820e5b8560b668246a42 100644 (file)
@@ -38,38 +38,39 @@ $(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(
-                                       "<span class='item-desc'>{2}</span>".format(
-                                               event.item['author-avatar'],
-                                               event.item['author-name'],
-                                               event.title,
-                                               event.item.desc,
-                                               event.item.location
-                               ));
-                               break;
+                                       element.find(".fc-title").html(
+                                               "<span class='item-desc'>{2}</span>".format(
+                                                       event.item['author-avatar'],
+                                                       event.item['author-name'],
+                                                       event.title,
+                                                       event.item.desc,
+                                                       event.item.location
+                                       ));
+                                       break;
                                case "agendaWeek":
-                               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'],
-                                               event.item['author-name'],
-                                               event.item.desc,
-                                               formatEventLocationText(event.item.location)
-                               ));
+                                       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'],
+                                                       event.item['author-name'],
+                                                       event.item.desc,
+                                                       formatEventLocationText(event.item.location)
+                                       ));
                                break;
                                case "agendaDay":
-                               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'],
-                                               event.item['author-name'],
-                                               event.item.desc,
-                                               formatEventLocationText(event.item.location)
-                               ));
-                               break;
+                                       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'],
+                                                       event.item['author-name'],
+                                                       event.item.desc,
+                                                       formatEventLocationText(event.item.location)
+                                       ));
+                                       break;
                                case "listMonth":
-                               element.find(".fc-list-item-title").html(formatListViewEvent(event));
+                                       element.find(".fc-list-item-title").html(formatListViewEvent(event));
                                break;
                        }
                },