maposmatic-dev
[Top][All Lists]
Advanced

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

[Maposmatic-dev] [PATCH 2/6] Ignore left/right movements in the suggesti


From: Thomas Petazzoni
Subject: [Maposmatic-dev] [PATCH 2/6] Ignore left/right movements in the suggestion box
Date: Sat, 7 Aug 2010 23:39:20 +0200

By ignoring left/right movements, we avoid useless Ajax requests to
the server.

Signed-off-by: Thomas Petazzoni <address@hidden>
---
 www/media/map_rendering_form.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/www/media/map_rendering_form.js b/www/media/map_rendering_form.js
index 1754acd..e574b62 100644
--- a/www/media/map_rendering_form.js
+++ b/www/media/map_rendering_form.js
@@ -444,6 +444,9 @@ function suggest(input, results, osm_id, options) {
           doQuery('');
         nextResult();
         break;
+      case 37: //LEFT
+      case 39: //RIGHT
+        break;
       default:
         if (timeout)
           clearTimeout(timeout);
-- 
1.7.0.4




reply via email to

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