From 94b249c77d5b4feb9e967f6160136ba91da6e5f3 Mon Sep 17 00:00:00 2001 From: Ross Harrison Date: Thu, 21 Apr 2016 11:45:25 -0400 Subject: [PATCH] don't trigger drag events without jquery ui --- src/gridstack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gridstack.js b/src/gridstack.js index 0a22d4d..bbf077a 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -1253,7 +1253,7 @@ el.each(function(index, el) { el = $(el); var node = el.data('_gridstack_node'); - if (typeof node == 'undefined' || node === null) { + if (self.opts.staticGrid || typeof node == 'undefined' || node === null) { return; } @@ -1273,7 +1273,7 @@ el.each(function(index, el) { el = $(el); var node = el.data('_gridstack_node'); - if (typeof node == 'undefined' || node === null) { + if (self.opts.staticGrid || typeof node == 'undefined' || node === null) { return; }