summaryrefslogtreecommitdiff
path: root/chimere/widgets.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2016-01-06 01:30:00 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2016-01-06 01:30:00 +0100
commit1f16cc6952d26a285325f2c7fdb8467e4a83b32e (patch)
treec1b1c68700efd299c4abc4031f620ee5717fc9d2 /chimere/widgets.py
parent70f16a3c305d28586c189349c13c7fa588715e16 (diff)
downloadChimère-1f16cc6952d26a285325f2c7fdb8467e4a83b32e.tar.bz2
Chimère-1f16cc6952d26a285325f2c7fdb8467e4a83b32e.zip
OL3 switch: first work
Diffstat (limited to 'chimere/widgets.py')
-rw-r--r--chimere/widgets.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/chimere/widgets.py b/chimere/widgets.py
index e7d104a..ea3fe16 100644
--- a/chimere/widgets.py
+++ b/chimere/widgets.py
@@ -249,10 +249,10 @@ class PointChooserWidget(forms.TextInput):
"""
class Media:
css = {
- "all": settings.OSM_CSS_URLS + \
+ "all": settings.MAP_CSS_URLS + \
["%schimere/css/forms.css" % settings.STATIC_URL,]
}
- js = settings.OSM_JS_URLS + list(settings.JQUERY_JS_URLS) + \
+ js = settings.MAP_JS_URLS + list(settings.JQUERY_JS_URLS) + \
["%schimere/js/jquery.chimere.js" % settings.STATIC_URL]
def render(self, name, value, attrs=None, area_name='', initialized=True):
@@ -331,10 +331,10 @@ class RouteChooserWidget(forms.TextInput):
Manage the edition of route on a map
"""
class Media:
- css = {"all": settings.OSM_CSS_URLS + \
+ css = {"all": settings.MAP_CSS_URLS + \
["%schimere/css/forms.css" % settings.STATIC_URL,]
}
- js = settings.OSM_JS_URLS + list(settings.JQUERY_JS_URLS) + \
+ js = settings.MAP_JS_URLS + list(settings.JQUERY_JS_URLS) + \
["%schimere/js/jquery.chimere.js" % settings.STATIC_URL,
"%schimere/js/edit_route_map.js" % settings.STATIC_URL,
"%schimere/js/base.js" % settings.STATIC_URL,]
@@ -468,10 +468,10 @@ class AreaWidget(forms.TextInput):
"""
class Media:
css = {
- "all": settings.OSM_CSS_URLS + \
+ "all": settings.MAP_CSS_URLS + \
["%schimere/css/forms.css" % settings.STATIC_URL,]
}
- js = settings.OSM_JS_URLS + [
+ js = settings.MAP_JS_URLS + [
"%schimere/js/edit_area.js" % settings.STATIC_URL,
"%schimere/js/base.js" % settings.STATIC_URL,]
@@ -567,10 +567,10 @@ class ImportFiltrWidget(AreaWidget):
"""
class Media:
css = {
- "all": settings.OSM_CSS_URLS + \
+ "all": settings.MAP_CSS_URLS + \
["%schimere/css/forms.css" % settings.STATIC_URL,]
}
- js = settings.OSM_JS_URLS + [
+ js = settings.MAP_JS_URLS + [
"%schimere/js/edit_area.js" % settings.STATIC_URL,
"%schimere/js/base.js" % settings.STATIC_URL,]