};
// attach tab event handler, unbind to avoid duplicates from former tabifying...
- this.anchors.bind( o.event + ".tabs", function() {
+ this.anchors.bind( o.event + ".tabs", function( event ) {
+ event.preventDefault();
var el = this,
$li = $(el).closest( "li" ),
$hide = self.panels.filter( ":not(.ui-tabs-hide)" ),
self.panels.filter( ":animated" ).length ||
self._trigger( "select", null, self._ui( this, $show[ 0 ] ) ) === false ) {
this.blur();
- return false;
+ return;
}
o.selected = self.anchors.index( this );
}).dequeue( "tabs" );
this.blur();
- return false;
+ return;
} else if ( !$hide.length ) {
if ( o.cookie ) {
self._cookie( o.selected, o.cookie );
self.load( self.anchors.index( this ) );
this.blur();
- return false;
+ return;
}
}
});
// disable click in any case
- this.anchors.bind( "click.tabs", function(){
- return false;
+ this.anchors.bind( "click.tabs", function( event ){
+ event.preventDefault();
});
},