editor: fix geometry hover

This commit is contained in:
Laura Klünder 2016-11-28 17:03:02 +01:00
parent 748c3ec7c4
commit b25f6c28c6

View file

@ -126,8 +126,8 @@ editor = {
editor._highlight_layer = L.layerGroup().addTo(editor.map);
editor._editing_layer = L.layerGroup().addTo(editor.map);
$('#mapeditcontrols').on('mouseenter', '.itemtable tr[name]', editor._hover_mapitem_row)
.on('mouseleave', '.itemtable tr[name]', editor._unhighlight_geometry);
$('#mapeditcontrols').on('mouseenter', '.itemtable tr[data-name]', editor._hover_mapitem_row)
.on('mouseleave', '.itemtable tr[data-name]', editor._unhighlight_geometry);
editor.map.on('editable:drawing:commit', editor._done_creating);
editor.map.on('editable:editing', editor._update_editing);