mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added disabled dragging init feature gridster.js
In initial options you can disble draggin by adding disable_drag: true on options list at initialising gridster
This commit is contained in:
Vendored
+5
-2
@@ -732,7 +732,8 @@
|
||||
draggable: {
|
||||
distance: 4,
|
||||
items: ".gs_w:not(.static)"
|
||||
}
|
||||
},
|
||||
disable_drag: false
|
||||
};
|
||||
|
||||
|
||||
@@ -807,7 +808,9 @@
|
||||
this.get_widgets_from_DOM();
|
||||
this.set_dom_grid_height();
|
||||
this.$wrapper.addClass('ready');
|
||||
this.draggable();
|
||||
if (!this.options.disable_drag) {
|
||||
this.draggable();
|
||||
}
|
||||
|
||||
$(window).bind(
|
||||
'resize', throttle($.proxy(this.recalculate_faux_grid, this), 200));
|
||||
|
||||
Reference in New Issue
Block a user