mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixed a bug that caused next_positions method redefinition
This commit is contained in:
@@ -131,7 +131,6 @@
|
|||||||
this.set_dom_grid_height();
|
this.set_dom_grid_height();
|
||||||
this.$wrapper.addClass('ready');
|
this.$wrapper.addClass('ready');
|
||||||
this.draggable();
|
this.draggable();
|
||||||
this.next_position(2, 2);
|
|
||||||
|
|
||||||
$(window).bind(
|
$(window).bind(
|
||||||
'resize', throttle($.proxy(this.recalculate_faux_grid, this), 200));
|
'resize', throttle($.proxy(this.recalculate_faux_grid, this), 200));
|
||||||
@@ -203,8 +202,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (valid_pos.length) {
|
if (valid_pos.length) {
|
||||||
this.next_position = this.sort_by_row_asc(valid_pos)[0];
|
var next_position = this.sort_by_row_asc(valid_pos)[0];
|
||||||
return this.next_position;
|
return next_position;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user