@@ -330,7 +330,8 @@ $.widget( "ui.tabs", {
330
330
} ;
331
331
332
332
// attach tab event handler, unbind to avoid duplicates from former tabifying...
333
- this . anchors . bind ( o . event + ".tabs" , function ( ) {
333
+ this . anchors . bind ( o . event + ".tabs" , function ( event ) {
334
+ event . preventDefault ( ) ;
334
335
var el = this ,
335
336
$li = $ ( el ) . closest ( "li" ) ,
336
337
$hide = self . panels . filter ( ":not(.ui-tabs-hide)" ) ,
@@ -346,7 +347,7 @@ $.widget( "ui.tabs", {
346
347
self . panels . filter ( ":animated" ) . length ||
347
348
self . _trigger ( "select" , null , self . _ui ( this , $show [ 0 ] ) ) === false ) {
348
349
this . blur ( ) ;
349
- return false ;
350
+ return ;
350
351
}
351
352
352
353
o . selected = self . anchors . index ( this ) ;
@@ -367,7 +368,7 @@ $.widget( "ui.tabs", {
367
368
} ) . dequeue ( "tabs" ) ;
368
369
369
370
this . blur ( ) ;
370
- return false ;
371
+ return ;
371
372
} else if ( ! $hide . length ) {
372
373
if ( o . cookie ) {
373
374
self . _cookie ( o . selected , o . cookie ) ;
@@ -381,7 +382,7 @@ $.widget( "ui.tabs", {
381
382
self . load ( self . anchors . index ( this ) ) ;
382
383
383
384
this . blur ( ) ;
384
- return false ;
385
+ return ;
385
386
}
386
387
}
387
388
@@ -415,8 +416,8 @@ $.widget( "ui.tabs", {
415
416
} ) ;
416
417
417
418
// disable click in any case
418
- this . anchors . bind ( "click.tabs" , function ( ) {
419
- return false ;
419
+ this . anchors . bind ( "click.tabs" , function ( event ) {
420
+ event . preventDefault ( ) ;
420
421
} ) ;
421
422
} ,
422
423
0 commit comments