From 6d97f19156a6f514c721453647aea320bae26d02 Mon Sep 17 00:00:00 2001 From: iamrakesh Date: Sun, 26 Jul 2015 12:01:08 +0530 Subject: [PATCH] Updated enable/disable resizable methods to check for data('ui-draggable') also, which is the new way since jquery-ui 1.10.2 --- source/stable/jquery.layout.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/stable/jquery.layout.js b/source/stable/jquery.layout.js index 759be09..fb10764 100644 --- a/source/stable/jquery.layout.js +++ b/source/stable/jquery.layout.js @@ -4644,8 +4644,9 @@ $.fn.layout = function (opts) { if (!isInitialized()) return; var pane = evtPane.call(this, evt_or_pane) , $R = $Rs[pane] + , isSlidable = $R && ($R.data('draggable') || $R.data('ui-draggable')) // jquery-ui 1.10.2+, uses 'ui-draggable' ; - if (!$R || !$R.data('draggable')) return; + if (!isSlidable) return; options[pane].slidable = true; if (state[pane].isClosed) bindStartSlidingEvents(pane, true); @@ -4679,8 +4680,9 @@ $.fn.layout = function (opts) { var pane = evtPane.call(this, evt_or_pane) , $R = $Rs[pane] , o = options[pane] + , isResizable = $R && ($R.data('draggable') || $R.data('ui-draggable')) // jquery-ui 1.10.2+, uses 'ui-draggable' ; - if (!$R || !$R.data('draggable')) return; + if (!isResizable) return; o.resizable = true; $R.draggable("enable"); if (!state[pane].isClosed) @@ -4694,8 +4696,9 @@ $.fn.layout = function (opts) { if (!isInitialized()) return; var pane = evtPane.call(this, evt_or_pane) , $R = $Rs[pane] + , isResizable = $R && ($R.data('draggable') || $R.data('ui-draggable')) // jquery-ui 1.10.2+, uses 'ui-draggable' ; - if (!$R || !$R.data('draggable')) return; + if (!isResizable) return; options[pane].resizable = false; $R .draggable("disable") .css("cursor", "default")