]> git.openstreetmap.org Git - rails.git/commitdiff
Don't use single quotes to wrap translated strings in javascript in case
authorTom Hughes <tom@compton.nu>
Tue, 9 Jun 2009 18:59:44 +0000 (18:59 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 9 Jun 2009 18:59:44 +0000 (18:59 +0000)
the translation contains an apostrophe. Closes #1942.

app/views/browse/start.rjs
app/views/export/start.rjs

index 3043e8330c93f586823798a11cef18908d56b3f0..70705452680be75283919966e5f718660f570423 100644 (file)
@@ -76,7 +76,7 @@ page << <<EOJ
   }
 
   function startDrag() {
-    $("browse_select_box").innerHTML='#{I18n.t('browse.start_rjs.drag_a_box')}';
+    $("browse_select_box").innerHTML="#{I18n.t('browse.start_rjs.drag_a_box')}";
 
     browseBoxControl.activate();
 
index 8a17ca6ae416eb9e6ee4ffbfe759f1ffe4d65bf6..c146e236d948302e889f997a45f1398cbbc5da1d 100644 (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;