From a5e3484ed309766cff20ef4db86770cf20f1d04e Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Tue, 17 Feb 2015 23:15:42 -0800 Subject: [PATCH] update gridstack.js --- gridstack.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gridstack.js b/gridstack.js index bfce4c5..aaee813 100644 --- a/gridstack.js +++ b/gridstack.js @@ -645,6 +645,16 @@ return this; }; + GridStack.prototype.disable = function () { + this.movable(this.container.find('.' + this.opts.item_class), false); + this.resizable(this.container.find('.' + this.opts.item_class), false); + }; + + GridStack.prototype.enable = function () { + this.movable(this.container.find('.' + this.opts.item_class), true); + this.resizable(this.container.find('.' + this.opts.item_class), true); + }; + GridStack.prototype.locked = function (el, val) { el = $(el); el.each(function (index, el) {