Added disabled dragging init feature gridster.js

In initial options you can disble draggin by adding disable_drag: true on options list at initialising gridster
This commit is contained in:
sbehrends
2013-04-01 20:29:30 +03:00
parent ac8894d4bb
commit 1d5883bde1
+5 -2
View File
@@ -732,7 +732,8 @@
draggable: {
distance: 4,
items: ".gs_w:not(.static)"
}
},
disable_drag: false
};
@@ -807,7 +808,9 @@
this.get_widgets_from_DOM();
this.set_dom_grid_height();
this.$wrapper.addClass('ready');
this.draggable();
if (!this.options.disable_drag) {
this.draggable();
}
$(window).bind(
'resize', throttle($.proxy(this.recalculate_faux_grid, this), 200));