editor: auto-select name field
This commit is contained in:
parent
122d7b71f0
commit
8ac8dd912a
1 changed files with 2 additions and 0 deletions
|
@ -237,6 +237,7 @@ editor = {
|
|||
_check_start_editing: function() {
|
||||
// called on sidebar load. start editing or creating depending on how the sidebar may require it
|
||||
var geometry_field = $('#mapeditcontrols').find('input[name=geometry]');
|
||||
$('#id_name').focus();
|
||||
if (geometry_field.length) {
|
||||
var form = geometry_field.closest('form');
|
||||
var mapitem_type = form.attr('data-mapitem-type');
|
||||
|
@ -270,6 +271,7 @@ editor = {
|
|||
}
|
||||
editor._creating = true;
|
||||
$('#id_level').val(editor._level);
|
||||
$('#id_name').select();
|
||||
}
|
||||
} else if (editor._get_geometries_next_time) {
|
||||
editor.get_geometries();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue