From: Scott González Date: Fri, 24 Jul 2009 02:00:31 +0000 (+0000) Subject: Dialog: Use :data(resizable) instead of :ui-resizable to check if the dialog is resiz... X-Git-Tag: 1.8a1~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30bfc47c35e3bf3a21692ed1b588b258ebbae209;p=jquery-ui.git 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. --- 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())); } });