maposmatic-dev
[Top][All Lists]
Advanced

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

[Maposmatic-dev] [PATCH] Fixing JS bug selection of a previously typed t


From: Pierre Mauduit
Subject: [Maposmatic-dev] [PATCH] Fixing JS bug selection of a previously typed town
Date: Tue, 22 Dec 2009 11:33:26 +0100

From: Pierre Mauduit <address@hidden>

- keypress replaced by keyup event
---
 www/templates/maposmatic/index.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/templates/maposmatic/index.html 
b/www/templates/maposmatic/index.html
index d618c4f..bc04af5 100644
--- a/www/templates/maposmatic/index.html
+++ b/www/templates/maposmatic/index.html
@@ -49,9 +49,9 @@ function pageinit()
   else
     area_selection_mode_switch('admin-mode');
 
-  $('#id_administrative_city').keypress(function (e)
+  $('#id_administrative_city').keyup(function (e)
                                        {
-                                         /* disable autoposting (keypress on 
return(13))
+                                         /* disable autoposting (keycode '13' 
==  return)
                                           *  doing a search instead */
                                          if (e.which == 13)
                                          {
-- 
1.6.5.7





reply via email to

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