Commit 57ec414e authored by afzafri's avatar afzafri
Browse files

destroy lightGallery when opening new comic

parent f4b8b093
......@@ -13,6 +13,11 @@ $(document).ready(function(){
// show loading
$('.se-pre-con').fadeIn('slow');
// destroy lightGallery
var $lg = $('#output');
$lg.lightGallery();
$lg.data('lightGallery').destroy(true);
// clear previous blobs
clearBlobs();
......
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