File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ http://touchslider.com
3030 currentClass : namespace + "-nav-item-current" ,
3131 duration : 350 ,
3232 mouseTouch : true ,
33- page : 0
33+ page : 0 ,
34+ callback : function ( ) { }
3435 // [container, scroller]
3536 } , options ) ;
3637
@@ -400,6 +401,7 @@ http://touchslider.com
400401 function changedView ( index ) {
401402 pagination . removeClass ( options . currentClass )
402403 . eq ( index ) . addClass ( options . currentClass ) ;
404+ options . callback . call ( this , index ) ;
403405 }
404406
405407 // set item or next
@@ -467,10 +469,12 @@ http://touchslider.com
467469 // left/right button
468470 $ ( options . prev , container ) . click ( function ( ) {
469471 prev ( ) ;
472+ return false ;
470473 } ) ;
471474
472475 $ ( options . next , container ) . click ( function ( ) {
473476 next ( ) ;
477+ return false ;
474478 } ) ;
475479
476480 function initTouch ( ) {
You can’t perform that action at this time.
0 commit comments