summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-06-18 16:47:06 +0200
committerChristian Franke <nobody@nowhere.ws>2016-06-18 16:47:22 +0200
commit18ae8e1ab866d1df4b113e3b844dcf3eb59a7647 (patch)
tree8870b1688bd6b688022466669af0a4c9ab067078
parent3e1c29b9349ea958ee326c73a66104ab21fbd53f (diff)
Fixup polyline support
-rw-r--r--web/js/eventmap.js4
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;
});