From 30bfc47c35e3bf3a21692ed1b588b258ebbae209 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 24 Jul 2009 02:00:31 +0000 Subject: [PATCH] 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. --- ui/ui.dialog.js | 4 ++-- 1 file 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())); } }); -- 2.39.5