r2969 commited - Dialog: Use :data(resizable) instead of :ui-resizable to check if the ...
Revision: 2969
Author: scott.gonzalez
Date: Thu Jul 23 19:00:31 2009
Log: Dialog: Use :data(resizable) instead of :ui-resizable to check if the
dialog is resizable. Fixes a bug when the resizable plugin isn't loaded
and the :ui-resizable selector therefore doesn't exist.
http://code.google.com/p/jquery-ui/source/detail?r=2969
Modified:
/trunk/ui/ui.dialog.js
=======================================
--- /trunk/ui/ui.dialog.js Wed Jul 22 19:47:38 2009
+++ /trunk/ui/ui.dialog.js Thu Jul 23 19:00:31 2009
@@ -461,7 +461,7 @@
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 @@
height: Math.max(options.height - nonContentHeight, 0)
});
- (this.uiDialog.is(':ui-resizable') &&
+ (this.uiDialog.is(':data(resizable)') &&
this.uiDialog.resizable('option', 'minHeight', this._minHeight()));
}
});