From: Bartek Przybylski Date: Tue, 5 Jun 2012 16:32:42 +0000 (+0200) Subject: use fancybox to display image preview X-Git-Tag: v4.5.0beta1~74^2~423^2~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=671fe4980939841d15c642bad4957c223931aa1f;p=nextcloud-server.git use fancybox to display image preview --- 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 ''; + return ''; } 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; diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index d3b281a2c38..3dc722f0666 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -1,8 +1,4 @@ @@ -15,7 +11,6 @@ div.gallery_div img.shrinker {width:80px !important;} div.title { opacity: 0; text-align: center; vertical-align: middle; font-family: Arial; font-size: 12px; border: 0; position: absolute; text-overflow: ellipsis; bottom: 20px; left:5px; height:auto; padding: 5px; width: 140px; background-color: black; color: white; -webkit-transition: opacity 0.5s; z-index:1000; border-radius: 7px} div.visible { opacity: 0.8;} -