| Project: | cck_map |
| Version: | 5.x-3.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Inserting a spanish symbol like á or similar makes the marker to break with a message like this one:
Error: unterminated string literal
Archivo fuente: http://bodaestilo.com/es/user/1
Línea: 26, Columna: 42
Código fuente:
Casita de la novia";marker1.description = "Desde aqui saldrá la novio.
and:
Error: field_el_mapa_de_vuestra_boda0markers is not defined
Archivo fuente: http://bodaestilo.com/es/user/1
Línea: 30
the solution could be passing utf8 the input from the javascript:
this.useTitle ? title = document.getElementById("edit-"+ this.prefix +"-" + i +"-title").value : title = '';
this.useDescription ? description = document.getElementById("edit-"+ this.prefix +"-" + i +"-description").value : description = '';