The doQuery() Javascript function takes as argument the list of places
to excludes from the list (necessary to implement and next and
previous buttons), but we were not calling it with this argument when
the user was typing text in the input box.

Signed-off-by: Thomas Petazzoni <[email protected]>
---
 www/media/js/newmap.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/www/media/js/newmap.js b/www/media/js/newmap.js
index 79ad9a0..68cd7b1 100644
--- a/www/media/js/newmap.js
+++ b/www/media/js/newmap.js
@@ -485,7 +485,7 @@ function suggest(input, results, osm_id, options) {
       default:
         if (timeout)
           clearTimeout(timeout);
-        timeout = setTimeout(doQuery, options.timeout);
+        timeout = setTimeout(function() { doQuery(''); }, options.timeout);
       }
   }
 
-- 
1.7.4.1


Reply via email to