Skip to content
Permalink
Browse files

Dialog: Remove busted ui-dialog-disabled class, shouldn't be there. R…

…emoved outdated TODOs.
  • Loading branch information...
jzaefferer committed Nov 15, 2012
1 parent 972f5c1 commit 0bc73b74b6acfe3c6b996e272649fbdbd14ce0f6
Showing with 0 additions and 11 deletions.
  1. +0 −11 ui/jquery.ui.dialog.js
@@ -427,7 +427,6 @@ $.widget("ui.dialog", {
});
},

// TODO why are handles passed by _setOption??
_makeResizable: function() {
var that = this,
options = this.options,
@@ -580,15 +579,6 @@ $.widget("ui.dialog", {
});
}

if ( key === "disabled" ) {
// TODO use toggleClass( "ui-dialog-disabled", value )
if ( value ) {
uiDialog.addClass( "ui-dialog-disabled" );
} else {
uiDialog.removeClass( "ui-dialog-disabled" );
}
}

if ( key === "draggable" ) {
isDraggable = uiDialog.is( ":data(ui-draggable)" );
if ( isDraggable && !value ) {
@@ -624,7 +614,6 @@ $.widget("ui.dialog", {

if ( key === "title" ) {
// convert whatever was passed in to a string, for html() to not throw up
// TODO deduplicate this (see _create)
$( ".ui-dialog-title", this.uiDialogTitlebar )
.html( "" + ( value || " " ) );
}

0 comments on commit 0bc73b7

Please sign in to comment.
You can’t perform that action at this time.