[Top][All Lists]
[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
- [Maposmatic-dev] [PATCH 1/6] Tell Emacs about the indentation level for JS code, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] Re: [PATCH 1/6] Tell Emacs about the indentation level for JS code, Maxime Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 5/6] Re-indent properly prepareLanguagePanel(), Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 2/6] Ignore left/right movements in the suggestion box,
Thomas Petazzoni <=
- [Maposmatic-dev] [PATCH 4/6] Use the reversegeo service to find the country code, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 3/6] Abort suggest Ajax query before starting a new one, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 6/6] Improve the language selector, Thomas Petazzoni, 2010/08/08