Skip to content
Snippets Groups Projects
Commit 914ef665 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Revert "test example for javascript translation"

This reverts commit 201a8e41.
parent 64d27c26
No related branches found
No related tags found
No related merge requests found
...@@ -42,12 +42,12 @@ function createMarker(position) ...@@ -42,12 +42,12 @@ function createMarker(position)
marker = new L.Marker(position, { draggable: true } ).addTo(map); marker = new L.Marker(position, { draggable: true } ).addTo(map);
marker.on('dragend', function() marker.on('dragend', function()
{ {
$('#input-latitude').attr('value',marker.getLatLng().lat); $('#input-latitude').attr('value',marker.getLatLng().lat);
$('#input-longitude').attr('value',marker.getLatLng().lng); $('#input-longitude').attr('value',marker.getLatLng().lng);
}); });
// TODO translate message TEST // TODO translate message
marker.bindPopup(`<center>${$('.translate').data('move-me')}</center>`).openPopup(); marker.bindPopup("<center>Déplacez moi pour préciser la position</br>(au centre du bâtiment)</center>").openPopup();
} }
function fitBounds(rawbounds) function fitBounds(rawbounds)
......
...@@ -12,7 +12,7 @@ $(document).ready(function() ...@@ -12,7 +12,7 @@ $(document).ready(function()
carto = goGoCarto('#gogocarto', gogoJsConf); carto = goGoCarto('#gogocarto', gogoJsConf);
// on search submit, redirect to the route provided by gogocartoJs // on search submit, redirect to the route provided by gogocartoJs
$('.search-bar').on('searchRoute', function(evt, route) { $('.search-bar').on('searchRoute', function(evt, route) {
var mainOption; var mainOption;
// in small screen a select is displayed // in small screen a select is displayed
if ($('.category-field-select').is(':visible')) if ($('.category-field-select').is(':visible'))
...@@ -29,7 +29,7 @@ $(document).ready(function() ...@@ -29,7 +29,7 @@ $(document).ready(function()
if (mainOption) route += '?cat=' + mainOption; if (mainOption) route += '?cat=' + mainOption;
var path = window.location.pathname + '/annuaire' + route; var path = window.location.pathname + '/annuaire' + route;
window.location.href = window.location.origin + path.replace('//', '/'); window.location.href = window.location.origin + path.replace('//', '/');
}) })
// clear viewport and address cookies // clear viewport and address cookies
eraseCookie('viewport'); eraseCookie('viewport');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment