Template:Team:HokkaidoU Japan/script

From 2011.igem.org

(Difference between revisions)
Line 371: Line 371:
this.setNavActive(this.currentNo );
this.setNavActive(this.currentNo );
-
if( this.settings.buttons && typeof (this.settings.buttons) == "object" ){
+
if( this.settings.buttons ){
-
this.registerButtonsControl( 'click', this.settings.buttons, this );
+
                if( typeof (this.settings.buttons) == "object" ){
-
 
+
                    this.registerButtonsControl( 'click', this.settings.buttons, this );
 +
                }
}
}
if( this.settings.auto )  
if( this.settings.auto )  
Line 473: Line 474:
finishFx:function( manual ){
finishFx:function( manual ){
if( manual ) this.stop();
if( manual ) this.stop();
-
if( manual && this.settings.auto ){  
+
if( manual ){
-
this.play( this.settings.interval,'next', true );
+
                if( this.settings.auto ){
 +
                    this.play( this.settings.interval,'next', true );
 +
                }
}
}
this.setNavActive( this.currentNo );
this.setNavActive( this.currentNo );
Line 525: Line 528:
})
})
})(jQuery)
})(jQuery)
 +
 +
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">

Revision as of 21:34, 4 October 2011