Skip to content

Commit

Permalink
Improved media type filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeankassio committed May 20, 2023
1 parent 38a23cf commit 158ff90
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
22 changes: 15 additions & 7 deletions js/jquery.lbt-lightbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* LBT Lightbox v1.0.7
* LBT Lightbox v1.0.9
* by Jean Kássio
*
* More info:
Expand Down Expand Up @@ -328,10 +328,14 @@
GetIframeVideos();
GetHTML5Videos();

$lbt_images = $(options.custom_children, options.container_images);
$totalImages = $lbt_images.length;

LoadImages($lbt_images);
setTimeout(function(){

$lbt_images = $(options.custom_children, options.container_images);
$totalImages = $lbt_images.length;

LoadImages($lbt_images);

}, 500);

}

Expand Down Expand Up @@ -1143,9 +1147,13 @@

$(imgs).each(function(i){

if($(this).attr('src').match('^blob:https?:\/\/(?:www\.)?') == null){
if(typeof $(this).attr('src') !== 'undefined'){

ImageTob64(this);
if($(this).attr('src').match('^blob:https?:\/\/(?:www\.)?') == null){

ImageTob64(this);

}

}

Expand Down
Loading

0 comments on commit 158ff90

Please sign in to comment.