mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feat(resize): add start/stop/resize event triggers
This commit is contained in:
@@ -1133,6 +1133,8 @@
|
||||
if (this.options.resize.start) {
|
||||
this.options.resize.start.call(this, event, ui, this.$resized_widget);
|
||||
}
|
||||
|
||||
this.$el.trigger('gridster:resizestart');
|
||||
};
|
||||
|
||||
|
||||
@@ -1169,6 +1171,8 @@
|
||||
if (this.options.resize.stop) {
|
||||
this.options.resize.stop.call(this, event, ui, this.$resized_widget);
|
||||
}
|
||||
|
||||
this.$el.trigger('gridster:resizestop');
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1256,6 +1260,8 @@
|
||||
this.options.resize.resize.call(this, event, ui, this.$resized_widget);
|
||||
}
|
||||
|
||||
this.$el.trigger('gridster:resize');
|
||||
|
||||
this.resize_last_sizex = size_x;
|
||||
this.resize_last_sizey = size_y;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user