maposmatic-dev
[Top][All Lists]
Advanced

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

[Maposmatic-dev] [PATCH] Yet another User-XP improvement


From: Pierre Mauduit
Subject: [Maposmatic-dev] [PATCH] Yet another User-XP improvement
Date: Mon, 21 Dec 2009 20:39:29 +0100

From: Pierre Mauduit <address@hidden>

The form is now correctly reset while switching from a mode to
an other (search -> select a place -> switch to bounding box
-> switch back to nominatim mode)
---
 www/templates/maposmatic/index.html |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/www/templates/maposmatic/index.html 
b/www/templates/maposmatic/index.html
index 3747461..997fc71 100644
--- a/www/templates/maposmatic/index.html
+++ b/www/templates/maposmatic/index.html
@@ -58,8 +58,11 @@ function area_selection_mode_switch(mode)
   }
   else
   {
-    /* re-activate form */
+    /* de-activate form */
     toggle_form_validation("false");
+    /* and empty list of previous Nominatim results */
+    $("#result_nominatim_search").empty();
+    $("#id_administrative_city").attr("value", "");
   }
 }
 
-- 
1.6.5.7





reply via email to

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