diff options
-rw-r--r-- | web/js/eventmap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/eventmap.js b/web/js/eventmap.js index b956fd2..aea7261 100644 --- a/web/js/eventmap.js +++ b/web/js/eventmap.js @@ -338,8 +338,8 @@ function polyline_added(e) { } while (marker_name in marker_store); marker_store[marker_name] = created_object; - marker.options.label_text = marker_name; - add_contextmenu(marker); + created_object.options.label_text = marker_name; + add_contextmenu(created_object); eventmap_send_update(); return false; }); |