]> git.mxchange.org Git - friendica.git/commitdiff
starting switching to colorbox
authorZach Prezkuta <fermion@gmx.com>
Thu, 31 Jan 2013 15:40:03 +0000 (08:40 -0700)
committerZach Prezkuta <fermion@gmx.com>
Tue, 5 Feb 2013 01:09:56 +0000 (18:09 -0700)
21 files changed:
js/main.js
view/admin_site.tpl
view/event_head.tpl
view/head.tpl
view/jot-header.tpl
view/smarty3/admin_site.tpl
view/smarty3/event_head.tpl
view/smarty3/head.tpl
view/smarty3/jot-header.tpl
view/theme/diabook/photo_view.tpl
view/theme/diabook/smarty3/photo_view.tpl
view/theme/diabook/theme.php
view/theme/dispy/jot-header.tpl
view/theme/dispy/photo_edit.tpl
view/theme/dispy/photo_view.tpl
view/theme/dispy/smarty3/jot-header.tpl
view/theme/dispy/smarty3/photo_edit.tpl
view/theme/dispy/smarty3/photo_view.tpl
view/theme/dispy/theme.php
view/theme/slackr/events_reminder.tpl
view/theme/slackr/smarty3/events_reminder.tpl

index ff1039be9d5eae23d7f76f30bca8236242fec9b3..7eaff3c43c7b6e9ffe942c3a1d13598056aa2d97 100644 (file)
                });
                
                // fancyboxes
-               $("a.popupbox").fancybox({
+               /*$("a.popupbox").fancybox({
                        'transitionIn' : 'elastic',
                        'transitionOut' : 'elastic'
+               });*/
+               $("a.popupbox").colorbox({
+                       'inline' : true,
+                       'transition' : 'none'
                });
                
 
index 38d1fb8d043464f87f9b786a57fc5ec105799df1..e8fdd425895c6240a6b8a786bd1f0a2503a57c19 100644 (file)
@@ -1,37 +1,40 @@
 <script>
        $(function(){
                
-               $("#cnftheme").fancybox({
-                       width: 800,
-                       autoDimensions: false,
-                       onStart: function(){
-                               var theme = $("#id_theme :selected").val();
-                               var theme_mobile = $("#id_theme_mobile :selected").val();
-                               $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
-                       }, 
-                       onComplete: function(){
-                               $("div#fancybox-content form").submit(function(e){
-                                       var url = $(this).attr('action');
-                                       // can't get .serialize() to work...
-                                       var data={};
-                                       $(this).find("input").each(function(){
-                                               data[$(this).attr('name')] = $(this).val();
-                                       });
-                                       $(this).find("select").each(function(){
-                                               data[$(this).attr('name')] = $(this).children(":selected").val();
-                                       });
-                                       console.log(":)", url, data);
+               $("#cnftheme").click(function(){
+                       $.colorbox({
+                               width: 800,
+                               height: '90%',
+                               /*onOpen: function(){
+                                       var theme = $("#id_theme :selected").val();
+                                       $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
+                               },*/
+                               href: "$baseurl/admin/themes/" + $("#id_theme :selected").val(),
+                               onComplete: function(){
+                                       $("div#fancybox-content form").submit(function(e){
+                                               var url = $(this).attr('action');
+                                               // can't get .serialize() to work...
+                                               var data={};
+                                               $(this).find("input").each(function(){
+                                                       data[$(this).attr('name')] = $(this).val();
+                                               });
+                                               $(this).find("select").each(function(){
+                                                       data[$(this).attr('name')] = $(this).children(":selected").val();
+                                               });
+                                               console.log(":)", url, data);
                                        
-                                       $.post(url, data, function(data) {
-                                               if(timer) clearTimeout(timer);
-                                               NavUpdate();
-                                               $.fancybox.close();
-                                       })
+                                               $.post(url, data, function(data) {
+                                                       if(timer) clearTimeout(timer);
+                                                       NavUpdate();
+                                                       $.colorbox.close();
+                                               })
                                        
-                                       return false;
-                               });
+                                               return false;
+                                       });
                                
-                       }
+                               }
+                       });
+                       return false;
                });
        });
 </script>
index ea7dc44663097eeec2bde44addd1720248bcb7da..559de24e31a4f2363272f9f811f787450b99dba9 100644 (file)
@@ -7,7 +7,7 @@
                $.get(
                        '$baseurl/events/?id='+eventid,
                        function(data){
-                               $.fancybox(data);
+                               $.colorbox({html:data});
                        }
                );                      
        }
index 588654352d51181170f4cc6a110d8f32031deecb..7b1ed7de933460fd5be48a19da6a9e6f3be9a220 100644 (file)
@@ -1,7 +1,8 @@
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 <base href="$baseurl/" />
 <meta name="generator" content="$generator" />
-<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
+{#<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />-->#}
+<link rel="stylesheet" href="$baseurl/library/colorbox/colorbox.css" type="text/css" media="screen" />
 <link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
 
 <link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
@@ -23,7 +24,8 @@
 <script type="text/javascript" src="$baseurl/js/jquery.js" ></script>
 <script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
 <script type="text/javascript" src="$baseurl/js/fk.autocomplete.js" ></script>
-<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox.pack.js"></script>
+{#<!--<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox.pack.js"></script>-->#}
+<script type="text/javascript" src="$baseurl/library/colorbox/jquery.colorbox-min.js"></script>
 <script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
 <script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
 <script type="text/javascript" src="$baseurl/js/acl.js" ></script>
index 8b9e772e604b06c53e09be1850058804c85a40f4..a442c4c6485b8c0de5769317f32a59104469075c 100644 (file)
@@ -13,9 +13,9 @@ function initEditor(cb){
                        $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
                        $("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
                        editor = true;
-                       $("a#jot-perms-icon").fancybox({
-                               'transitionIn' : 'elastic',
-                               'transitionOut' : 'elastic'
+                       $("a#jot-perms-icon").colorbox({
+                               'inline' : true,
+                               'transition' : 'elastic'
                        });
                        $(".jothidden").show();
                        if (typeof cb!="undefined") cb();
@@ -105,9 +105,9 @@ function initEditor(cb){
                });
                editor = true;
                // setup acl popup
-               $("a#jot-perms-icon").fancybox({
-                       'transitionIn' : 'elastic',
-                       'transitionOut' : 'elastic'
+               $("a#jot-perms-icon").colorbox({
+                       'inline' : true,
+                       'transition' : 'elastic'
                }); 
        } else {
                if (typeof cb!="undefined") cb();
@@ -274,7 +274,7 @@ function enableOnUser(){
                var bordercolor = $("input").css("border-color");
                
                $.get('filer/', function(data){
-                       $.fancybox(data);
+                       $.colorbox({html:data});
                        $("#id_term").keypress(function(){
                                $(this).css("border-color",bordercolor);
                        })
@@ -292,7 +292,7 @@ function enableOnUser(){
 //                                     if(timer) clearTimeout(timer);
 //                                     timer = setTimeout(NavUpdate,3000);
                                        liking = 1;
-                                       $.fancybox.close();
+                                       $.colorbox.close();
                                } else {
                                        $("#id_term").css("border-color","#FF0000");
                                }
index 2ff63ec2e70e3c885ebba68ad3092d72e9eb21f1..f033b52eeffaa7468f3e6639f98cc5da941a5c0b 100644 (file)
@@ -6,37 +6,40 @@
 <script>
        $(function(){
                
-               $("#cnftheme").fancybox({
-                       width: 800,
-                       autoDimensions: false,
-                       onStart: function(){
-                               var theme = $("#id_theme :selected").val();
-                               var theme_mobile = $("#id_theme_mobile :selected").val();
-                               $("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
-                       }, 
-                       onComplete: function(){
-                               $("div#fancybox-content form").submit(function(e){
-                                       var url = $(this).attr('action');
-                                       // can't get .serialize() to work...
-                                       var data={};
-                                       $(this).find("input").each(function(){
-                                               data[$(this).attr('name')] = $(this).val();
-                                       });
-                                       $(this).find("select").each(function(){
-                                               data[$(this).attr('name')] = $(this).children(":selected").val();
-                                       });
-                                       console.log(":)", url, data);
+               $("#cnftheme").click(function(){
+                       $.colorbox({
+                               width: 800,
+                               height: '90%',
+                               /*onOpen: function(){
+                                       var theme = $("#id_theme :selected").val();
+                                       $("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
+                               },*/
+                               href: "{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val(),
+                               onComplete: function(){
+                                       $("div#fancybox-content form").submit(function(e){
+                                               var url = $(this).attr('action');
+                                               // can't get .serialize() to work...
+                                               var data={};
+                                               $(this).find("input").each(function(){
+                                                       data[$(this).attr('name')] = $(this).val();
+                                               });
+                                               $(this).find("select").each(function(){
+                                                       data[$(this).attr('name')] = $(this).children(":selected").val();
+                                               });
+                                               console.log(":)", url, data);
                                        
-                                       $.post(url, data, function(data) {
-                                               if(timer) clearTimeout(timer);
-                                               NavUpdate();
-                                               $.fancybox.close();
-                                       })
+                                               $.post(url, data, function(data) {
+                                                       if(timer) clearTimeout(timer);
+                                                       NavUpdate();
+                                                       $.colorbox.close();
+                                               })
                                        
-                                       return false;
-                               });
+                                               return false;
+                                       });
                                
-                       }
+                               }
+                       });
+                       return false;
                });
        });
 </script>
index 4eb8c304fba99210cad3765e2d58681bae10d5fc..3d7091fb7a5ef6c1a307b2dbbbd1d30664f18d93 100644 (file)
@@ -12,7 +12,7 @@
                $.get(
                        '{{$baseurl}}/events/?id='+eventid,
                        function(data){
-                               $.fancybox(data);
+                               $.colorbox({html:data});
                        }
                );                      
        }
index 27e561514958fb748593e7ade865270d29bc401c..1b01b71a05dafd9ac9fa6cc5d56a8c792cfcb446 100644 (file)
@@ -6,7 +6,8 @@
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 <base href="{{$baseurl}}/" />
 <meta name="generator" content="{{$generator}}" />
-<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
+{{*<!--<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />-->*}}
+<link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
 <link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
 
 <link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
@@ -28,7 +29,8 @@
 <script type="text/javascript" src="{{$baseurl}}/js/jquery.js" ></script>
 <script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
 <script type="text/javascript" src="{{$baseurl}}/js/fk.autocomplete.js" ></script>
-<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox.pack.js"></script>
+{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox.pack.js"></script>-->*}}
+<script type="text/javascript" src="{{$baseurl}}/library/colorbox/jquery.colorbox-min.js"></script>
 <script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
 <script type="text/javascript" src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
 <script type="text/javascript" src="{{$baseurl}}/js/acl.js" ></script>
index b893f1f6b147ed808c768d6d8bfea2d8fecce026..ce7dcf2a4d9167b6638ad7bc98f3dc13aef8a619 100644 (file)
@@ -18,9 +18,9 @@ function initEditor(cb){
                        $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
                        $("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
                        editor = true;
-                       $("a#jot-perms-icon").fancybox({
-                               'transitionIn' : 'elastic',
-                               'transitionOut' : 'elastic'
+                       $("a#jot-perms-icon").colorbox({
+                               'inline' : true,
+                               'transition' : 'elastic'
                        });
                        $(".jothidden").show();
                        if (typeof cb!="undefined") cb();
@@ -110,9 +110,9 @@ function initEditor(cb){
                });
                editor = true;
                // setup acl popup
-               $("a#jot-perms-icon").fancybox({
-                       'transitionIn' : 'elastic',
-                       'transitionOut' : 'elastic'
+               $("a#jot-perms-icon").colorbox({
+                       'inline' : true,
+                       'transition' : 'elastic'
                }); 
        } else {
                if (typeof cb!="undefined") cb();
@@ -279,7 +279,7 @@ function enableOnUser(){
                var bordercolor = $("input").css("border-color");
                
                $.get('filer/', function(data){
-                       $.fancybox(data);
+                       $.colorbox({html:data});
                        $("#id_term").keypress(function(){
                                $(this).css("border-color",bordercolor);
                        })
@@ -297,7 +297,7 @@ function enableOnUser(){
 //                                     if(timer) clearTimeout(timer);
 //                                     timer = setTimeout(NavUpdate,3000);
                                        liking = 1;
-                                       $.fancybox.close();
+                                       $.colorbox.close();
                                } else {
                                        $("#id_term").css("border-color","#FF0000");
                                }
index 272b67048801f3dce99d96d470ca04fca5f13ba5..3a8f7291ec9da03cf7d2e7daf258f77aa19f12eb 100644 (file)
@@ -11,7 +11,8 @@
 </div>
 
 {{ if $prevlink }}<div id="photo-prev-link"><a href="$prevlink.0">$prevlink.1</a></div>{{ endif }}
-<div id="photo-photo"><a href="$photo.href" class="lightbox" title="$photo.title"><img src="$photo.src" /></a></div>
+{#<!--<div id="photo-photo"><a href="$photo.href" class="lightbox" title="$photo.title"><img src="$photo.src" /></a></div>-->#}
+<div id="photo-photo"><img href="$photo.href" class="lightbox" style="cursor:pointer;" src="$photo.src" /></div>
 {{ if $nextlink }}<div id="photo-next-link"><a href="$nextlink.0">$nextlink.1</a></div>{{ endif }}
 <div id="photo-photo-end"></div>
 <div id="photo-caption">$desc</div>
index e3908be006c5e452460df59642b66aa7971a1a72..55a8440d10c48b558c7fb35bdd1ea09b4e979049 100644 (file)
@@ -16,7 +16,8 @@
 </div>
 
 {{if $prevlink}}<div id="photo-prev-link"><a href="{{$prevlink.0}}">{{$prevlink.1}}</a></div>{{/if}}
-<div id="photo-photo"><a href="{{$photo.href}}" class="lightbox" title="{{$photo.title}}"><img src="{{$photo.src}}" /></a></div>
+{{*<!--<div id="photo-photo"><a href="{{$photo.href}}" class="lightbox" title="{{$photo.title}}"><img src="{{$photo.src}}" /></a></div>-->*}}
+<div id="photo-photo"><img href="{{$photo.href}}" class="lightbox" style="cursor:pointer;" src="{{$photo.src}}" /></div>
 {{if $nextlink}}<div id="photo-next-link"><a href="{{$nextlink.0}}">{{$nextlink.1}}</a></div>{{/if}}
 <div id="photo-photo-end"></div>
 <div id="photo-caption">{{$desc}}</div>
index 1ec98e877a0c580de54f3b78ae69b86ca8e71954..faafb7537f670a59fc33b012ed800183556ccb50 100644 (file)
@@ -169,10 +169,10 @@ if ($color=="dark") $color_path = "/diabook-dark/";
        $a->page['htmlhead'] .= '
        <script>
         $(function() {
-               $("a.lightbox").fancybox(); // Select all links with lightbox class
-               $("a#twittersettings-link").fancybox({onClosed: function() { $("#twittersettings").attr("style","display: none;");}} );
-          $("a#mapcontrol-link").fancybox({onClosed: function() { $("#mapcontrol").attr("style","display: none;");}} );
-          $("a#closeicon").fancybox({onClosed: function() { $("#boxsettings").attr("style","display: none;");}} );
+               $("img.lightbox").colorbox({maxHeight:"90%"}); // Select all links with lightbox class
+               $("a#twittersettings-link").colorbox({inline:true,onClosed: function() { $("#twittersettings").attr("style","display: none;");}} );
+               $("a#mapcontrol-link").colorbox({inline:true,onClosed: function() { $("#mapcontrol").attr("style","display: none;");}} );
+               $("a#closeicon").colorbox({inline:true,onClosed: function() { $("#boxsettings").attr("style","display: none;");}} );
                });
 
         $(window).load(function() {
index 3974c11c9fd12fc109df8b44b31d50b4c50382f5..f4712f0bef181a84113c165b7ef4b3d73ea8f116 100644 (file)
@@ -11,9 +11,9 @@ function initEditor(cb) {
                        $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
                        $("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
                        editor = true;
-                       $("a#jot-perms-icon").fancybox({
-                               'transitionIn' : 'elastic',
-                               'transitionOut' : 'elastic'
+                       $("a#jot-perms-icon").colorbox({
+                               'inline' : true,
+                               'transition' : 'elastic'
                        });
                        $(".jothidden").show();
                        if (typeof cb!="undefined") cb();
@@ -102,9 +102,9 @@ function initEditor(cb) {
                });
                editor = true;
                // setup acl popup
-               $("a#jot-perms-icon").fancybox({
-                       'transitionIn' : 'elastic',
-                       'transitionOut' : 'elastic'
+               $("a#jot-perms-icon").colorbox({
+                       'inline' : true,
+                       'transition' : 'elastic'
                }); 
        } else {
                if (typeof cb!="undefined") cb();
@@ -268,7 +268,7 @@ function enableOnUser(){
                var bordercolor = $("input").css("border-color");
                
                $.get('filer/', function(data){
-                       $.fancybox(data);
+                       $.colorbox({html:data});
                        $("#id_term").keypress(function(){
                                $(this).css("border-color",bordercolor);
                        })
@@ -286,7 +286,7 @@ function enableOnUser(){
                                        if(timer) clearTimeout(timer);
                                        timer = setTimeout(NavUpdate,3000);
                                        liking = 1;
-                                       $.fancybox.close();
+                                       $.colorbox.close();
                                } else {
                                        $("#id_term").css("border-color","#FF0000");
                                }
index 9e623ba61decf956b8e3b4fedf2db29ebb3f1bfb..ead8bc9207c95d801eb67774590e5e6179d993e2 100644 (file)
@@ -46,8 +46,8 @@
 </form>
 
 <script type="text/javascript">
-       $("a#photo-edit-perms-menu").fancybox({
-               'transitionIn' : 'none',
-               'transitionOut' : 'none'
+       $("a#photo-edit-perms-menu").colorbox({
+               'inline' : true,
+               'transition' : 'none'
        }); 
 </script>
index a5595830851ae9143d82a4ef28bcd5db3509a977..cab7dfb3fda8910b01735fd58c95bc3c321eb4f1 100644 (file)
@@ -11,7 +11,8 @@
 </div>
 
 {{ if $prevlink }}<div id="photo-prev-link"><a href="$prevlink.0">$prevlink.1</a></div>{{ endif }}
-<div id="photo-photo"><a href="$photo.href" class="lightbox" title="$photo.title"><img src="$photo.src" /></a></div>
+{#<!--<div id="photo-photo"><a href="$photo.href" class="lightbox" title="$photo.title"><img src="$photo.src" /></a></div>-->#}
+<div id="photo-photo"><img href="$photo.href" class="lightbox" style="cursor:pointer;" src="$photo.src" /></div>
 {{ if $nextlink }}<div id="photo-next-link"><a href="$nextlink.0">$nextlink.1</a></div>{{ endif }}
 <div id="photo-photo-end"></div>
 <div id="photo-caption">$desc</div>
index 00bf4dcb7b8f65a5f41ed52b32c64f323a5b82b3..4aafc2175de69eb873deeb2631d776145b88e9e2 100644 (file)
@@ -16,9 +16,9 @@ function initEditor(cb) {
                        $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
                        $("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
                        editor = true;
-                       $("a#jot-perms-icon").fancybox({
-                               'transitionIn' : 'elastic',
-                               'transitionOut' : 'elastic'
+                       $("a#jot-perms-icon").colorbox({
+                               'inline' : true,
+                               'transition' : 'elastic'
                        });
                        $(".jothidden").show();
                        if (typeof cb!="undefined") cb();
@@ -107,9 +107,9 @@ function initEditor(cb) {
                });
                editor = true;
                // setup acl popup
-               $("a#jot-perms-icon").fancybox({
-                       'transitionIn' : 'elastic',
-                       'transitionOut' : 'elastic'
+               $("a#jot-perms-icon").colorbox({
+                       'inline' : true,
+                       'transition' : 'elastic'
                }); 
        } else {
                if (typeof cb!="undefined") cb();
@@ -273,7 +273,7 @@ function enableOnUser(){
                var bordercolor = $("input").css("border-color");
                
                $.get('filer/', function(data){
-                       $.fancybox(data);
+                       $.colorbox({html:data});
                        $("#id_term").keypress(function(){
                                $(this).css("border-color",bordercolor);
                        })
@@ -291,7 +291,7 @@ function enableOnUser(){
                                        if(timer) clearTimeout(timer);
                                        timer = setTimeout(NavUpdate,3000);
                                        liking = 1;
-                                       $.fancybox.close();
+                                       $.colorbox.close();
                                } else {
                                        $("#id_term").css("border-color","#FF0000");
                                }
index 3a3dcaca760059820ee43991d71ffff4d48daaf8..b9a92fda8108686804df32cbd46796804d9623c2 100644 (file)
@@ -51,8 +51,8 @@
 </form>
 
 <script type="text/javascript">
-       $("a#photo-edit-perms-menu").fancybox({
-               'transitionIn' : 'none',
-               'transitionOut' : 'none'
+       $("a#photo-edit-perms-menu").colorbox({
+               'inline' : true,
+               'transition' : 'none'
        }); 
 </script>
index cfc8868edf92dbadea0304fc0f1f9f55037c6100..027cc8fb9d46d0f1b8122ccb13286eec84b364ba 100644 (file)
@@ -16,7 +16,8 @@
 </div>
 
 {{if $prevlink}}<div id="photo-prev-link"><a href="{{$prevlink.0}}">{{$prevlink.1}}</a></div>{{/if}}
-<div id="photo-photo"><a href="{{$photo.href}}" class="lightbox" title="{{$photo.title}}"><img src="{{$photo.src}}" /></a></div>
+{{*<!--<div id="photo-photo"><a href="{{$photo.href}}" class="lightbox" title="{{$photo.title}}"><img src="{{$photo.src}}" /></a></div>-->*}}
+<div id="photo-photo"><img href="{{$photo.href}}" class="lightbox" style="cursor:pointer;" src="{{$photo.src}}" /></div>
 {{if $nextlink}}<div id="photo-next-link"><a href="{{$nextlink.0}}">{{$nextlink.1}}</a></div>{{/if}}
 <div id="photo-photo-end"></div>
 <div id="photo-caption">{{$desc}}</div>
index d0b7e19d76960db7e15af45120067a8e9968170d..2eb104ae1e91578e66a0828f76f6e5fd3621ac1d 100644 (file)
@@ -52,7 +52,7 @@ function dispy_init(&$a) {
        <script type="text/javascript">
        $(document).ready(function() {
                // Select all links with lightbox class
-               $("a.lightbox").fancybox();
+               $("img.lightbox").colorbox({maxHeight:"90%"});
 
        $('.group-edit-icon').hover(
                        function() {
index bd1a57d18d842a8e9111404740bfe52fcd57681d..93c493432ad21fa0771a0e0f249dc21eadb762ff 100644 (file)
@@ -10,7 +10,7 @@
                $.get(
                        '$baseurl/events/?id='+eventid,
                        function(data){
-                               $.fancybox(data);
+                               $.colorbox({html:data});
                        }
                );                      
        }
index 5bac58421953f5218d031eed1247a5830955eb4b..0f699a30229e6bc1668a534fa2d4d24cc639fcf7 100644 (file)
@@ -15,7 +15,7 @@
                $.get(
                        '{{$baseurl}}/events/?id='+eventid,
                        function(data){
-                               $.fancybox(data);
+                               $.colorbox({html:data});
                        }
                );                      
        }