From b0476bf1745b58e1b4802223902212a274bc19e1 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 4 Jun 2011 22:41:17 +0200 Subject: [PATCH] fix imageviewer again --- apps/files_imageviewer/css/lightbox.css | 2 ++ apps/files_imageviewer/js/lightbox.js | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/apps/files_imageviewer/css/lightbox.css b/apps/files_imageviewer/css/lightbox.css index d5a1c33514..a6e844a2e2 100644 --- a/apps/files_imageviewer/css/lightbox.css +++ b/apps/files_imageviewer/css/lightbox.css @@ -1,5 +1,6 @@ #lightbox_overlay{ position:fixed; + display:none; height:100%; width:100%; top:0px; @@ -12,6 +13,7 @@ #lightbox{ position:fixed; + display:none; max-height:90%; max-width:90%; top:10px; diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js index e29bc510ee..5f15c78691 100644 --- a/apps/files_imageviewer/js/lightbox.js +++ b/apps/files_imageviewer/js/lightbox.js @@ -1,12 +1,13 @@ var lightBoxShown=false; $(document).ready(function() { images={};//image cache + var overlay=$('