From 5dc7445d62717646cb0c96ecca3d0de2dde701d6 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sat, 20 Jul 2019 19:43:07 +0200 Subject: [PATCH] Rework the include wording in the export modal --- index.html | 32 ++++++++++++++++++-------------- js/control/Export.js | 4 ++-- js/router/BRouter.js | 7 +------ 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index c7387fa..66e707b 100644 --- a/index.html +++ b/index.html @@ -680,26 +680,30 @@ + + +
+
- + Include
- +
diff --git a/js/control/Export.js b/js/control/Export.js index 68c2b1d..5e9e9f1 100644 --- a/js/control/Export.js +++ b/js/control/Export.js @@ -45,13 +45,13 @@ BR.Export = L.Class.extend({ exportForm['format'].value || $('#export-format input:radio:checked').val(); var name = encodeURIComponent(exportForm['trackname'].value); - var exportWaypoints = exportForm['export-waypoints'].checked; + var includeWaypoints = exportForm['include-waypoints'].checked; var uri = this.router.getUrl( this.latLngs, format, name, - exportWaypoints + includeWaypoints ); var evt = document.createEvent('MouseEvents'); diff --git a/js/router/BRouter.js b/js/router/BRouter.js index ddddc51..c3cfb2c 100644 --- a/js/router/BRouter.js +++ b/js/router/BRouter.js @@ -137,12 +137,7 @@ L.BRouter = L.Class.extend({ trackname: trackname }) ); - if (exportWaypoints) - args.push( - L.Util.template('exportWaypoints={exportWaypoints}', { - exportWaypoints: +exportWaypoints - }) - ); + if (exportWaypoints) args.push('exportWaypoints=1'); var prepend_host = format != null;