check graph_editing in sidebar_loaded so load_geometries can depend on it
This commit is contained in:
parent
a55d1f366d
commit
f6df29ce38
1 changed files with 5 additions and 6 deletions
|
@ -139,6 +139,11 @@ editor = {
|
|||
$('#navbar-collapse').find('.nav').html(nav.html());
|
||||
}
|
||||
|
||||
var graph_editing = content.find('[data-graph-editing]');
|
||||
if (graph_editing.length) {
|
||||
editor._graph_editing = graph_editing.attr('data-graph-editing');
|
||||
}
|
||||
|
||||
content.find('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
var modal_close = content.find('[data-modal-close]');
|
||||
|
@ -487,12 +492,6 @@ editor = {
|
|||
// called on sidebar load. start editing or creating depending on how the sidebar may require it
|
||||
var sidebarcontent = $('#sidebar').find('.content');
|
||||
|
||||
var graph_editing = sidebarcontent.find('[data-graph-editing]');
|
||||
if (graph_editing.length) {
|
||||
editor._graph_editing = graph_editing.attr('data-graph-editing');
|
||||
return;
|
||||
}
|
||||
|
||||
var geometry_field = sidebarcontent.find('input[name=geometry]');
|
||||
if (geometry_field.length) {
|
||||
var form = geometry_field.closest('form');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue