From 18ae8e1ab866d1df4b113e3b844dcf3eb59a7647 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sat, 18 Jun 2016 16:47:06 +0200 Subject: Fixup polyline support --- web/js/eventmap.js | 4 ++-- 1 file 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; }); -- cgit v1.2.1