mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-25 00:32:16 +02:00
fixed: drag api access from gridster and draggable.disable method.
Fixes #25. I broke this in the issue #17 and commit 8e7a5c.
This commit is contained in:
@@ -313,13 +313,13 @@
|
||||
fn.disable = function(){
|
||||
this.$container.off(pointer_events.start);
|
||||
this.$body.off(pointer_events.end);
|
||||
this.$container.off(this.on_select_start);
|
||||
this.$container.off('selectstart', this.on_select_start);
|
||||
};
|
||||
|
||||
|
||||
fn.destroy = function(){
|
||||
this.disable();
|
||||
$.removeData(this.$container, 'draggable');
|
||||
$.removeData(this.$container, 'drag');
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -410,7 +410,7 @@
|
||||
}, 60)
|
||||
});
|
||||
|
||||
this.drag_api = this.$el.drag(draggable_options).data('draggable');
|
||||
this.drag_api = this.$el.drag(draggable_options).data('drag');
|
||||
return this;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user