]> git.openstreetmap.org Git - rails.git/commitdiff
Zoom to fit when submitting form
authorRichard Fairhurst <richard@systemeD.net>
Sat, 8 Mar 2014 16:31:54 +0000 (16:31 +0000)
committerRichard Fairhurst <richard@systemeD.net>
Sat, 8 Mar 2014 16:31:54 +0000 (16:31 +0000)
app/assets/javascripts/index.js

index 178ed761173cd3b8efe9d965763b85907095c9d1..f07f4331ddede704bf67a48a66cde98c34893bf9 100644 (file)
@@ -327,7 +327,7 @@ $(document).ready(function () {
     e.preventDefault();
     if ($(".query_wrapper.routing").is(":visible")) {
       // Routing
-      OSM.routing.requestRoute(true, false);
+      OSM.routing.requestRoute(true, true);
     } else {
       // Search
       $("header").addClass("closed");