]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added colorbox support.
authorSem <sembrestels@riseup.net>
Fri, 10 Aug 2012 17:26:42 +0000 (19:26 +0200)
committerSem <sembrestels@riseup.net>
Fri, 10 Aug 2012 17:26:42 +0000 (19:26 +0200)
views/default/event_calendar/full_calendar_view.php

index 3e0c583ced90b062e0ba03caf998be2a3d727a18..7a40c6da9125a45c43540866b46defcbd9c8650b 100644 (file)
@@ -14,8 +14,11 @@ handleEventClick = function(event) {
         if (event.is_event_poll) {
                window.location.href = event.url;
         } else {            
-               //window.location.href = event.url;
-               $.fancybox({'href':event.url});
+                       if ($.fancybox) {
+                               $.fancybox({'href': event.url});
+                       } else if ($.colorbox) {
+                               $.colorbox({'href': event.url});
+                       }
         }
         return false;
     }