summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib/tiles.php
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-06-05 18:32:42 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2012-06-06 22:13:49 +0200
commit671fe4980939841d15c642bad4957c223931aa1f (patch)
tree57bdff2766692a3f0881d2c3cdbf28904cc09dc0 /apps/gallery/lib/tiles.php
parent76e7e361aef51badd048727db7ffc104e19e231a (diff)
downloadnextcloud-server-671fe4980939841d15c642bad4957c223931aa1f.tar.gz
nextcloud-server-671fe4980939841d15c642bad4957c223931aa1f.zip
use fancybox to display image preview
Diffstat (limited to 'apps/gallery/lib/tiles.php')
-rw-r--r--apps/gallery/lib/tiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/lib/tiles.php b/apps/gallery/lib/tiles.php
index 26ff3cbb9f8..c2d7fede786 100644
--- a/apps/gallery/lib/tiles.php
+++ b/apps/gallery/lib/tiles.php
@@ -96,7 +96,7 @@ class TileSingle extends TileBase {
}
public function get($extra = '') {
- return '<img src="'.GET_THUMBNAIL_PATH.urlencode($this->getPath()).'" '.$extra.'>';
+ return '<a rel="images" href="?app=files&getfile=download.php?file='.urlencode($this->getPath()).'"><img rel="images" src="'.GET_THUMBNAIL_PATH.urlencode($this->getPath()).'" '.$extra.'></a>';
}
public function getMiniatureSrc() {
@@ -108,7 +108,7 @@ class TileSingle extends TileBase {
}
public function getOnClickAction() {
- return 'javascript:openFile(\''.$this->file_path.'\');';
+ return '';//'javascript:openFile(\''.$this->file_path.'\');';
}
private $file_path;