Ticket #19139: patch1.diff

File patch1.diff, 784 bytes (added by Flavio Curella, 12 years ago)
  • django/contrib/gis/templates/gis/admin/openlayers.html

    diff --git a/django/contrib/gis/templates/gis/admin/openlayers.html b/django/contrib/gis/templates/gis/admin/openlayers.html
    index a61b689..5ea6714 100644
    a b  
    3131//]]>
    3232</script>
    3333<div id="{{ id }}_map"{% if LANGUAGE_BIDI %} dir="ltr"{% endif %}></div>
     34{% if wkt == '' or modifiable %}
    3435<a href="javascript:{{ module }}.clearFeatures()">Delete all Features</a>
     36{% endif %}
    3537{% if display_wkt %}<p> WKT debugging window:</p>{% endif %}
    3638<textarea id="{{ id }}" class="vWKTField required" cols="150" rows="10" name="{{ name }}">{{ wkt }}</textarea>
    3739<script type="text/javascript">{% block init_function %}{{ module }}.init();{% endblock %}</script>
Back to Top