Dialog: Remove busted ui-dialog-disabled class, shouldn't be there. Removed outdated TODOs.

This commit is contained in:
Jörn Zaefferer 2012-11-16 00:05:40 +01:00
parent 972f5c192c
commit 0bc73b74b6

View File

@ -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 || " " ) );
}