Skip to content
Browse files

Update catalog/ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js

Fix for BxGallery where <li> element not recognized as first on Jquery 1.8.1 
  • Loading branch information...
1 parent 98b817f commit c34c3863e9feadd0bde12815a9e21485979d2dd9 @acidvertigo committed Sep 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js
View
2 catalog/ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js
@@ -20,7 +20,7 @@ if(o.maxheight!=''){if($this.height()>o.maxheight){$this.height(o.maxheight);$th
var captionheight=0;if($this.parent().find('.caption').height()>0){captionheight=$this.parent().find('.caption').height();}
if($this.height()+captionheight>tall){tall=$this.height()+captionheight;}
if($this.width()>wide){wide=$this.width();}
-cont+='<li><img src="'+$this.prop('src')+'" /></li>';});$orig.find('li:not(:first)').hide();$orig.height(tall);$orig.width(wide);$outer.find('.caption').width(wide);}
+cont+='<li><img src="'+$this.prop('src')+'" /></li>';});$orig.find('li:not(:first-child)').hide();$orig.height(tall);$orig.width(wide);$outer.find('.caption').width(wide);}
function place_thumbcontainer(){if(o.thumbplacement=='top'){$outer.prepend('<ul class="thumbs">'+cont+'</ul>');$outer.find('.thumbs').css({'overflow':'auto'});}else if(o.thumbplacement=='left'){$outer.prepend('<ul class="thumbs">'+cont+'</ul>');$orig.css({'float':'left'});$outer.find('.thumbs').css({'float':'left'});}else if(o.thumbplacement=='bottom'){$outer.append('<ul class="thumbs">'+cont+'</ul>');}else if(o.thumbplacement=='right'){$outer.append('<ul class="thumbs">'+cont+'</ul>');$orig.css({'float':'left'});$outer.find('.thumbs').css({'float':'left'});}
$outer.append('<div style="clear:both"></div>');if(o.thumbcontainer!=''){$outer.find('.thumbs').width(o.thumbcontainer);}}
function set_thumbs(){$outer.find('.thumbs li').each(function(){var $this=$(this);var $img=$this.find('img');var $imgwidth=$img.width();var $imgheight=$img.height();if(o.thumbcrop){$img.width($imgwidth*o.croppercent);$img.height(($imgheight/$imgwidth)*$img.width());$this.css({'float':'left','width':o.thumbwidth,'height':o.thumbwidth,'overflow':'hidden','cursor':'pointer'});}else{$img.width(o.thumbwidth);$img.height(($imgheight/$imgwidth)*o.thumbwidth);$this.css({'float':'left','cursor':'pointer','width':$img.width(),'height':$img.height()});$this.height($img.height());}$img.css({'width':$img.width(),'height': $img.height()});

0 comments on commit c34c386

Please sign in to comment.
Something went wrong with that request. Please try again.