mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Remove busted ui-dialog-disabled class, shouldn't be there. Removed outdated TODOs.
This commit is contained in:
parent
972f5c192c
commit
0bc73b74b6
11
ui/jquery.ui.dialog.js
vendored
11
ui/jquery.ui.dialog.js
vendored
@ -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 || " " ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user