From 816071a0779a28f8322ceaf4a50fde6e6c2e5c44 Mon Sep 17 00:00:00 2001 From: Martin Mrose Date: Tue, 3 Nov 2015 00:14:57 +0100 Subject: [PATCH] Triggering enable and disable events on gridstack container --- src/gridstack.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gridstack.js b/src/gridstack.js index afd7843..5f2e528 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -812,11 +812,13 @@ GridStack.prototype.disable = function() { this.movable(this.container.children('.' + this.opts.item_class), false); this.resizable(this.container.children('.' + this.opts.item_class), false); + this.container.trigger('disable'); }; GridStack.prototype.enable = function() { this.movable(this.container.children('.' + this.opts.item_class), true); this.resizable(this.container.children('.' + this.opts.item_class), true); + this.container.trigger('enable'); }; GridStack.prototype.locked = function(el, val) {