Commit 903eb524 authored by afzafri's avatar afzafri
Browse files

only init the gallery on the first click on a image

parent fe077ac0
......@@ -3,10 +3,12 @@ $(document).ready(function(){
// Load all the archive formats
loadArchiveFormats(['rar', 'zip', 'tar']);
$(document).on('click','#comicImg',function(){
// init the gallery plugin, when there is a first click on a image
$(document).one('click','#comicImg',function(){
event.preventDefault();
// initialize gallery
$('#output').lightGallery();
$(this).click();
});
$("#fileup").change(function(){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment