don't trigger drag events without jquery ui

This commit is contained in:
Ross Harrison 2016-04-21 11:45:25 -04:00
parent 0a5d67cfc8
commit 94b249c77d

View file

@ -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;
}