Skip to content
Snippets Groups Projects
Commit dab65600 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix imageviewer not showing up when using the actions menu

parent e5816451
No related branches found
No related tags found
No related merge requests found
var lightBoxShown=false;
$(document).ready(function() {
images={};//image cache
FileActions.register('image','View',function(filename){
......@@ -38,9 +39,12 @@ function showLightbox(container,img){
container.append(img);
container.css('top',Math.round( ($( window ).height() - img.height)/2));
container.css('left',Math.round( ($( window ).width() - img.width)/2));
lightBoxShown=true;
}
function hideLightbox(){
$('#lightbox_overlay').remove();
$('#lightbox').remove();
if(lightBoxShown){
$('#lightbox_overlay').remove();
$('#lightbox').remove();
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment