aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-07-24 02:00:31 +0000
committerScott González <scott.gonzalez@gmail.com>2009-07-24 02:00:31 +0000
commit30bfc47c35e3bf3a21692ed1b588b258ebbae209 (patch)
tree5e73017451c22d7ae8d79df46d3f5cb7348b9c78 /ui/ui.dialog.js
parentd6f7a57eb1c8962a6affffcad542a2751c1f56ea (diff)
downloadjquery-ui-30bfc47c35e3bf3a21692ed1b588b258ebbae209.tar.gz
jquery-ui-30bfc47c35e3bf3a21692ed1b588b258ebbae209.zip
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.
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r--ui/ui.dialog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 777cc3490..2815e4968 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -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()));
}
});