diff --git a/dist/jquery.gridster.js b/dist/jquery.gridster.js index c1b15166..707a50ab 100644 --- a/dist/jquery.gridster.js +++ b/dist/jquery.gridster.js @@ -951,6 +951,18 @@ return this; }; + /** + * Toggle dragging. + * + * @method toggle + * @return {Class} Returns the instance of the Gridster Class. + */ + + fn.toggle = function() { + (this.drag_api.disabled) ? this.drag_api.enable() : this.drag_api.disable(); + return this; + }; + /**