add sussargues to known communes (#6435)

This commit is contained in:
Frédéric Péters 2015-03-23 13:32:31 +01:00
parent d36ade1918
commit cf5735b17e
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ $(document).ready(function () {
city_to_id_map['Saint-Georges-d\'Orques'] = 'saint-georges';
id_to_city_map['saint-georges'] = 'Saint-Georges-d\'Orques';
{% endif %}
{% if sussargues %}
demarches['sussargues'] = {{ sussargues.data|jsonify }};
city_to_id_map['Sussargues'] = 'sussargues';
id_to_city_map['sussargues'] = 'Sussargues';
{% endif %}
var city = '{{ user.socialaccount_set.all.0.extra_data.ville }}';
var city_id = city_to_id_map[city];
if (demarches[city_id] != undefined && demarches[city_id].length > 0) {