From 217daac4e88a64573b8262ec3ec2309c89d1deed Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Wed, 29 Mar 2017 17:18:43 +0200 Subject: [PATCH] Do not autozoom when changing an existing route from a result popup (#33) --- frontend/app/map/search/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/map/search/search.js b/frontend/app/map/search/search.js index 817a5742..a07fc3d6 100644 --- a/frontend/app/map/search/search.js +++ b/frontend/app/map/search/search.js @@ -305,7 +305,7 @@ fm.app.factory("fmMapSearch", function($rootScope, $compile, fmUtils, $timeout, else if(mode == 3) routeUi.setTo(query, results, result); - routeUi.submit(); + routeUi.submit(!!routeUi.getQueries()); popup.closePopup(); };