diff options
Diffstat (limited to 'chimere/widgets.py')
| -rw-r--r-- | chimere/widgets.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/chimere/widgets.py b/chimere/widgets.py index 7d92684..2a8bc5d 100644 --- a/chimere/widgets.py +++ b/chimere/widgets.py @@ -658,7 +658,7 @@ class PolygonChooserWidget(forms.TextInput):              {'name': name, 'val': val, 'initialized': initialized,               'isvalue': bool(value),               'default_area': "true" if default_area else "false", -             'value': value, 'extra_js': u"\n".join(extra_js), +             'value': value               }          )          return mark_safe(tpl.format( @@ -667,7 +667,8 @@ class PolygonChooserWidget(forms.TextInput):              projection=settings.CHIMERE_EPSG_PROJECTION,              center=list(settings.CHIMERE_DEFAULT_CENTER),              zoom=zoom, -            map_layers=", ".join(map_layers) +            map_layers=u", ".join(map_layers), +            extra_js=u"\n".join(extra_js),          )) | 
