From 5ff86db265393bbe806ddd3cc52b06a9f62a0619 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Tue, 29 Apr 2008 13:57:26 +0000 Subject: [PATCH] add support for HTML export to export tabk --- app/views/export/_start.rhtml | 13 +++++++++++-- app/views/export/start.rjs | 26 +++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/app/views/export/_start.rhtml b/app/views/export/_start.rhtml index b484831b8..83d747e8d 100644 --- a/app/views/export/_start.rhtml +++ b/app/views/export/_start.rhtml @@ -56,9 +56,18 @@
- +

Options

+

+ <%= check_box_tag("html_marker", "true") %> Include Marker on Map +

+

Output

- +

+ +

+

+ Paste HTML to embed in website +

diff --git a/app/views/export/start.rjs b/app/views/export/start.rjs index 2d3ec06ec..b53d4ed4f 100644 --- a/app/views/export/start.rjs +++ b/app/views/export/start.rjs @@ -109,6 +109,7 @@ page << <'; + $("export_html_text").value = html; + } + $("html_marker").onclick = htmlBoundsChanged; + function formatChanged() { + $("export_commit").style.display = "inline"; if ($("format_osm").checked) { $("export_osm").style.display = "inline"; } else { @@ -181,13 +198,20 @@ page << <