Don't use single quotes to wrap translated strings in javascript in case

the translation contains an apostrophe. Closes #1942.
This commit is contained in:
Tom Hughes 2009-06-09 18:59:44 +00:00
parent 451525973f
commit a8c7d1c4ce
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ page << <<EOJ
$("minlat").onchange = boundsChanged;
function startDrag() {
$("drag_box").innerHTML='#{I18n.t('export.start_rjs.drag_a_box')}';
$("drag_box").innerHTML="#{I18n.t('export.start_rjs.drag_a_box')}";
clearBox();
box.activate();
@ -248,7 +248,7 @@ page << <<EOJ
var layers = getMapLayers();
html += '<br /><small><a href="http://#{SERVER_URL}/?lat='+center.lat+'&lon='+center.lon+'&zoom='+zoom+'&layers='+layers+markerUrl+'">#{I18n.t('export.start_rjs.view_larger_map')}</a></small>';
html += '<br /><small><a href="http://#{SERVER_URL}/?lat='+center.lat+'&lon='+center.lon+'&zoom='+zoom+'&layers='+layers+markerUrl+'">'+"#{I18n.t('export.start_rjs.view_larger_map')}"+'</a></small>';
$("export_html_text").value = html;