Skip to content
Permalink
Browse files

Dialog: Don't call draggable.destroy if we're not currently draggable…

…. Fixes #6069 - DIALOG windows 1.8.5 draggapble problem.
  • Loading branch information
scottgonzalez committed Sep 20, 2010
1 parent 82b1595 commit 98a98a05d1a646a1e53b90020fe7c096acd1d933
Showing with 7 additions and 4 deletions.
  1. +7 −4 ui/jquery.ui.dialog.js
@@ -521,7 +521,8 @@ $.widget("ui.dialog", {
_setOption: function(key, value){
var self = this,
uiDialog = self.uiDialog,
isResizable = uiDialog.is(':data(resizable)'),
isDraggable = uiDialog.is( ":data(draggable)" ),
isResizable = uiDialog.is( ":data(resizable)" ),
resize = false;

switch (key) {
@@ -552,10 +553,12 @@ $.widget("ui.dialog", {
}
break;
case "draggable":
if (value) {
if ( isDraggable && !value ) {
uiDialog.draggable( "destroy" );
}

if ( !isDraggable && value ) {
self._makeDraggable();
} else {
uiDialog.draggable('destroy');
}
break;
case "height":

0 comments on commit 98a98a0

Please sign in to comment.
You can’t perform that action at this time.