From feab5d8e18fd6bd14fbf9ff4c6574f91f9669e98 Mon Sep 17 00:00:00 2001 From: martynsmall Date: Thu, 6 Aug 2015 15:40:27 +0100 Subject: [PATCH] Updated dist --- dist/gridstack.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/gridstack.js b/dist/gridstack.js index 9b338a7..181fcd5 100644 --- a/dist/gridstack.js +++ b/dist/gridstack.js @@ -762,6 +762,7 @@ }; GridStack.prototype.resizable = function(el, val) { + var self = this; el = $(el); el.each(function(index, el) { el = $(el); @@ -771,7 +772,7 @@ } node.no_resize = !(val || false); - if (node.no_resize) { + if (node.no_resize || self._is_one_column_mode()) { el.resizable('disable'); } else { @@ -782,6 +783,7 @@ }; GridStack.prototype.movable = function(el, val) { + var self = this; el = $(el); el.each(function(index, el) { el = $(el); @@ -791,7 +793,7 @@ } node.no_move = !(val || false); - if (node.no_move) { + if (node.no_move || self._is_one_column_mode()) { el.draggable('disable'); } else {