Skip to content

Commit 816071a

Browse files
committed
Triggering enable and disable events on gridstack container
1 parent fc571d8 commit 816071a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gridstack.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,11 +812,13 @@
812812
GridStack.prototype.disable = function() {
813813
this.movable(this.container.children('.' + this.opts.item_class), false);
814814
this.resizable(this.container.children('.' + this.opts.item_class), false);
815+
this.container.trigger('disable');
815816
};
816817

817818
GridStack.prototype.enable = function() {
818819
this.movable(this.container.children('.' + this.opts.item_class), true);
819820
this.resizable(this.container.children('.' + this.opts.item_class), true);
821+
this.container.trigger('enable');
820822
};
821823

822824
GridStack.prototype.locked = function(el, val) {

0 commit comments

Comments
 (0)