]> git.openstreetmap.org Git - rails.git/commitdiff
From->To->Go order as per @samanpwbb's comment
authorRichard Fairhurst <richard@systemeD.net>
Mon, 10 Mar 2014 16:55:01 +0000 (16:55 +0000)
committerRichard Fairhurst <richard@systemeD.net>
Mon, 10 Mar 2014 16:55:01 +0000 (16:55 +0000)
app/assets/javascripts/index.js
app/assets/stylesheets/common.css.scss

index 2b5f23ef17d2f9487956d7332eb4e90603c49048..52b8b4c2300c1386a93b518976ddbee10b8920a0 100644 (file)
@@ -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');
index b94f30c6df746615c108f47e12ef63d48d49509e..5a26d12f3329d7520e71e61205a0e04c063b67db 100644 (file)
@@ -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;
 }