Improving the "user XP" with the HTML form.

- Re-enable it when using "bounding box" mode
stable
Pierre Mauduit 2009-12-21 20:26:47 +01:00 zatwierdzone przez Thomas Petazzoni
rodzic 7be6cfd20d
commit 49373036fe
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -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()
@ -127,7 +134,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>");
}
@ -283,7 +290,6 @@ maps.{% endblocktrans %}</p>
</td></tr>
<tr class="byadmin field">
<td colspan="2">
{% trans "Did you mean : " %}
<ul id="result_nominatim_search">
</ul>
</td>