Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -37,7 +37,14 @@ ipb_gallery.carousel = Class.create({
|
||||
this.hRight = $( this.options.handle + '_right' );
|
||||
}
|
||||
|
||||
this.items = this.wrapper.select(".carousel_img");
|
||||
try
|
||||
{
|
||||
this.items = this.wrapper.select(".carousel_img");
|
||||
}
|
||||
catch( e )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
this.items.each( function(elem, index){
|
||||
if( index > 0 )
|
||||
@@ -52,13 +59,16 @@ ipb_gallery.carousel = Class.create({
|
||||
$(this.wrapper).on( 'mouseleave', this.mouseLeave.bindAsEventListener(this) );
|
||||
$(this.wrapper).on( 'click', 'a.carousel_nav', this.mouseClick.bind(this) );
|
||||
|
||||
if( this.hLeft && this.hRight )
|
||||
if( this.hLeft && this.hRight && this.items.length > 1 )
|
||||
{
|
||||
this.hLeft.show().setStyle('opacity: 0.12');
|
||||
this.hRight.show().setStyle('opacity: 0.12');
|
||||
}
|
||||
|
||||
this.startAutoProgress();
|
||||
|
||||
if ( this.items.length > 1)
|
||||
{
|
||||
this.startAutoProgress();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -86,7 +96,10 @@ ipb_gallery.carousel = Class.create({
|
||||
new Effect.Morph( this.hRight, { 'style':'opacity: 0.12;', duration: 0.3 } );
|
||||
}
|
||||
|
||||
this.startAutoProgress();
|
||||
if ( this.items.length > 1)
|
||||
{
|
||||
this.startAutoProgress();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user