From 9d8ab7dbd11f9fff0faf82b948bf1a07e86aa5b7 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Mon, 10 Mar 2014 16:55:01 +0000 Subject: [PATCH] From->To->Go order as per @samanpwbb's comment --- app/assets/javascripts/index.js | 2 ++ app/assets/stylesheets/common.css.scss | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 2b5f23ef1..52b8b4c23 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -355,6 +355,7 @@ $(document).ready(function () { e.preventDefault(); $(".search").hide(); $(".routing").show(); + $(".search_form input[type='submit']").addClass("routing_submit"); $(".query_wrapper.routing [name=route_from]").focus(); $("#map").on('dragend dragover',function(e) { e.preventDefault(); }); $("#map").on('drop',function(e) { OSM.routing.handleDrop(e); e.preventDefault(); }); @@ -372,6 +373,7 @@ $(document).ready(function () { e.preventDefault(); $(".search").show(); $(".routing").hide(); + $(".search_form input[type='submit']").removeClass("routing_submit"); OSM.routing.close(); $("#map").off('dragend drop dragover'); $(".routing_marker").off('dragstart'); diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index b94f30c6d..5a26d12f3 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1005,6 +1005,10 @@ td.direction { td.direction.i#{$i} { background-position: #{($i)*-20+20}px 0px; } } +.routing_submit { + margin-top: 30px !important; +} + p#routing_summary { padding: 0 $lineheight $lineheight/4; } -- 2.39.5