Skip to content

Commit

Permalink
feat(draggable): Add toggle draggable method.
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ddest authored and vieron committed Feb 14, 2014
1 parent e21f63a commit 073fdc4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dist/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};



/**
Expand Down

0 comments on commit 073fdc4

Please sign in to comment.