Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #10625 -- Fixed a Javascript regex in openlayers.js. Thanks tim…

…linux for the report and Aymeric Augustin for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 69748864359f6038edca18b9e99a34fcc4a5a36b 1 parent 8d71734
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/templates/gis/admin/openlayers.js
View
2  django/contrib/gis/templates/gis/admin/openlayers.js
@@ -1,7 +1,7 @@
{% load l10n %}{# Author: Justin Bronn, Travis Pinney & Dane Springmeyer #}
OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.SphericalMercator.projectForward);
{% block vars %}var {{ module }} = {};
-{{ module }}.map = null; {{ module }}.controls = null; {{ module }}.panel = null; {{ module }}.re = new RegExp("^SRID=\d+;(.+)", "i"); {{ module }}.layers = {};
+{{ module }}.map = null; {{ module }}.controls = null; {{ module }}.panel = null; {{ module }}.re = new RegExp("^SRID=\\d+;(.+)", "i"); {{ module }}.layers = {};
{{ module }}.modifiable = {{ modifiable|yesno:"true,false" }};
{{ module }}.wkt_f = new OpenLayers.Format.WKT();
{{ module }}.is_collection = {{ is_collection|yesno:"true,false" }};
Please sign in to comment.
Something went wrong with that request. Please try again.