]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Remove busted ui-dialog-disabled class, shouldn't be there. Removed outdated...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 15 Nov 2012 23:05:40 +0000 (00:05 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 16 Nov 2012 09:46:52 +0000 (10:46 +0100)
ui/jquery.ui.dialog.js

index 314db95ffb090d61a0f6d255a9b667c1a0f79109..8a52ff23627c3c70f3e4efc258218ca4c31bab67 100644 (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 || "&#160;" ) );
                }