From fa0f848c35fe8e44eeee224447551748453bc57f Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Tue, 23 Jan 2018 17:54:30 -0600 Subject: [PATCH] adding swap button --- index.htm | 1 + js/GUI.Utils.js | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/index.htm b/index.htm index 6f919b7..cb0959c 100644 --- a/index.htm +++ b/index.htm @@ -70,6 +70,7 @@ +



diff --git a/js/GUI.Utils.js b/js/GUI.Utils.js index 02c054d..1720719 100644 --- a/js/GUI.Utils.js +++ b/js/GUI.Utils.js @@ -39,6 +39,14 @@ $(document).ready(function() { var stop=$('#route_output :selected').parent().attr('label'); zoomfocus(stop); }); + $('#swapab').click(function() { + var pa = "pointa"; + var pb = "pointb"; + $("#pointa").remove(); + $("#pointb").remove(); + $("#pointa").val(pb); + $("#pointb").val(pa); + }); $('#calctnd').click(function() { removeEntity('arrow');