Code

Ticket #19139: patch1.diff

File patch1.diff, 784 bytes (added by fcurella, 21 months ago)
Line 
1diff --git a/django/contrib/gis/templates/gis/admin/openlayers.html b/django/contrib/gis/templates/gis/admin/openlayers.html
2index a61b689..5ea6714 100644
3--- a/django/contrib/gis/templates/gis/admin/openlayers.html
4+++ b/django/contrib/gis/templates/gis/admin/openlayers.html
5@@ -31,7 +31,9 @@
6 //]]>
7 </script>
8 <div id="{{ id }}_map"{% if LANGUAGE_BIDI %} dir="ltr"{% endif %}></div>
9+{% if wkt == '' or modifiable %}
10 <a href="javascript:{{ module }}.clearFeatures()">Delete all Features</a>
11+{% endif %}
12 {% if display_wkt %}<p> WKT debugging window:</p>{% endif %}
13 <textarea id="{{ id }}" class="vWKTField required" cols="150" rows="10" name="{{ name }}">{{ wkt }}</textarea>
14 <script type="text/javascript">{% block init_function %}{{ module }}.init();{% endblock %}</script>