maposmatic-dev
[Top][All Lists]
Advanced

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

[Maposmatic-dev] [PATCH] Improving the "user XP" with the HTML form.


From: Pierre Mauduit
Subject: [Maposmatic-dev] [PATCH] Improving the "user XP" with the HTML form.
Date: Mon, 21 Dec 2009 20:26:47 +0100

From: Pierre Mauduit <address@hidden>

- Re-enable it when using "bounding box" mode
---
 www/templates/maposmatic/index.html |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/www/templates/maposmatic/index.html 
b/www/templates/maposmatic/index.html
index f1e4d60..3747461 100644
--- a/www/templates/maposmatic/index.html
+++ b/www/templates/maposmatic/index.html
@@ -51,9 +51,16 @@ function area_selection_mode_switch(mode)
   }
 
   if (mode == 'bbox-mode') {
+    /* re-activate form */
+    toggle_form_validation("true");
     reset_osmid_field();
     if (map == null) init();
   }
+  else
+  {
+    /* re-activate form */
+    toggle_form_validation("false");
+  }
 }
 
 function reset_osmid_field()
@@ -126,7 +133,7 @@ function validate_city_search()
                if (typeof item.ocitysmap_params == "undefined")
                {
                  $("#result_nominatim_search").append("<li><img 
src=\"/smedia/icon_alert.png\" "+
-                 "alt=\"Work In Progress\" title=\"{% trans "This place could 
not be rendered by MapOSMatic, see help to figure out why." %}\" />"+
+                 "alt=\"Work In Progress\" title=\"{% trans "This place cannot 
be rendered by MapOSMatic, administrative boundary missing. Please contribute 
!" %}\" />"+
                    "&nbsp;<label class=\"place_unavailable\""
                    + ">" +item.display_name + "</label></li>");
                 }
@@ -257,7 +264,6 @@ maps.{% endblocktrans %}</p>
     </td></tr>
     <tr class="byadmin field">
       <td colspan="2">
-      {% trans "Did you mean : " %}
        <ul id="result_nominatim_search">
        </ul>
       </td>
-- 
1.6.5.7





reply via email to

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