]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Use :data(resizable) instead of :ui-resizable to check if the dialog is resiz...
authorScott González <scott.gonzalez@gmail.com>
Fri, 24 Jul 2009 02:00:31 +0000 (02:00 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 24 Jul 2009 02:00:31 +0000 (02:00 +0000)
ui/ui.dialog.js

index 777cc3490d75f311f748c8789c84a3eb60576998..2815e49682a5a078ed9c5b761a9245ccdaf35c5a 100644 (file)
@@ -461,7 +461,7 @@ $.widget("ui.dialog", {
                                self._position(value);
                                break;
                        case "resizable":
-                               var isResizable = uiDialog.is(':ui-resizable');
+                               var isResizable = uiDialog.is(':data(resizable)');
 
                                // currently resizable, becoming non-resizable
                                (isResizable && !value && uiDialog.resizable('destroy'));
@@ -515,7 +515,7 @@ $.widget("ui.dialog", {
                                height: Math.max(options.height - nonContentHeight, 0)
                        });
 
-               (this.uiDialog.is(':ui-resizable') &&
+               (this.uiDialog.is(':data(resizable)') &&
                        this.uiDialog.resizable('option', 'minHeight', this._minHeight()));
        }
 });