Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/jquery.ui.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ $.widget("ui.dialog", {
uiDialogTitlebarClose.removeClass('ui-state-focus');
})
.click(function(event) {
event.preventDefault();
self.close(event);
return false;
})
.appendTo(uiDialogTitlebar),

Expand Down
13 changes: 7 additions & 6 deletions ui/jquery.ui.tabs.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ $.widget( "ui.tabs", {
};

// 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)" ),
Expand All @@ -349,7 +350,7 @@ $.widget( "ui.tabs", {
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 );
Expand All @@ -370,7 +371,7 @@ $.widget( "ui.tabs", {
}).dequeue( "tabs" );

this.blur();
return false;
return;
} else if ( !$hide.length ) {
if ( o.cookie ) {
self._cookie( o.selected, o.cookie );
Expand All @@ -384,7 +385,7 @@ $.widget( "ui.tabs", {
self.load( self.anchors.index( this ) );

this.blur();
return false;
return;
}
}

Expand Down Expand Up @@ -418,8 +419,8 @@ $.widget( "ui.tabs", {
});

// disable click in any case
this.anchors.bind( "click.tabs", function(){
return false;
this.anchors.bind( "click.tabs", function( event ){
event.preventDefault();
});
},

Expand Down