diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-16 23:16:32 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-10-21 20:19:39 +0200 |
commit | f0565de900e3abd80557e2912d577a2002809d38 (patch) | |
tree | ce2a8210f56f3654d49f861bcb517798212efa85 /apps/gallery/templates | |
parent | 2906ea3d78d2ff8ebfa3ceebe1c8cb5afa43225a (diff) | |
download | nextcloud-server-f0565de900e3abd80557e2912d577a2002809d38.tar.gz nextcloud-server-f0565de900e3abd80557e2912d577a2002809d38.zip |
use fancybox instead of lightbox
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'apps/gallery/templates')
-rw-r--r-- | apps/gallery/templates/view_album.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/gallery/templates/view_album.php b/apps/gallery/templates/view_album.php index ea2969e0110..230e2a5c21d 100644 --- a/apps/gallery/templates/view_album.php +++ b/apps/gallery/templates/view_album.php @@ -1,9 +1,17 @@ <?php OC_Util::addStyle('gallery', 'styles'); OC_Util::addScript('gallery', 'album_cover'); -OC_Util::addScript( 'files_imageviewer', 'lightbox' ); -OC_Util::addStyle( 'files_imageviewer', 'lightbox' ); +OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack'); +OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack'); +OC_Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' ); ?> +<script type="text/javascript"> + $(document).ready(function() { + $("a[rel=images]").fancybox({ + 'titlePosition': 'inside' + }); + }); +</script> <div id="controls"> <a href="?"><input type="button" value="Back" /></a><br/> @@ -12,7 +20,7 @@ OC_Util::addStyle( 'files_imageviewer', 'lightbox' ); <?php foreach ($_['photos'] as $a) { ?> -<a onclick="javascript:viewImage('/','<?php echo $a; ?>');"><img src="ajax/thumbnail.php?img=<?php echo $a ?>"></a> +<a rel="images" href="../../files/ajax/download.php?files=<?php echo $a; ?>"><img src="ajax/thumbnail.php?img=<?php echo $a ?>"></a> <?php } ?> |