maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH 1/3] maposmatic/newmap.js: fix call do doQuery()


From: Thomas Petazzoni
Subject: [Maposmatic-dev] [PATCH 1/3] maposmatic/newmap.js: fix call do doQuery() function
Date: Sun, 25 Mar 2012 16:20:41 +0200

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 <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]