diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js index b7a07c2408..25da2bc683 100644 --- a/apps/files_imageviewer/js/lightbox.js +++ b/apps/files_imageviewer/js/lightbox.js @@ -1,6 +1,7 @@ -if(typeof ileActions!=='undefined'){ - var lightBoxShown=false; - $(document).ready(function() { + +var lightBoxShown=false; +$(document).ready(function() { + if(typeof FileActions!=='undefined'){ images={};//image cache var overlay=$('