Subversion Repository Public Repository

Nextrek

Diff Revisions 1051 vs 1052 for /Web/Smartcharging_search/js/maps-google.js

Diff revisions: vs.
  @@ -52,7 +52,7 @@
52 52 }));
53 53 getMarkersBySearch(place, pos.lat, pos.lng, markers, window.tipologies, infowindow, map, iconSmart, contents, null);
54 54 } else {
55 - alert("Posizione non trovata");
55 + alert(getText("Posizione non trovata", document.documentElement.lang));
56 56 }
57 57 });
58 58
  @@ -122,19 +122,19 @@
122 122 '<div id="siteNotice">'+
123 123 '</div>'+
124 124 '<h1 id="firstHeading" class="firstHeading">' + name + '</h1>'+
125 - '<h4 id="secondHeading" class="secondHeading">' + typName + '</h4>' +
125 + '<h4 id="secondHeading" class="secondHeading">' + getText(typName, document.documentElement.lang) + '</h4>' +
126 126 '<div id="bodyContent">'+
127 127 '<div id="rating" class="' + response.locals[i].stelle + '">' + rates + '</div>' +
128 128 '<p style="margin-top: 1em;">' + description + '</p>'+
129 - '<div id="charging"><p><b>Punti di ricarica: </b>' + charging + '</p></div>' +
130 - '<p><b>Indirizzo:</b> ' + address + '</p>' +
129 + '<div id="charging"><p><b>' + getText("Punti di ricarica", document.documentElement.lang) + ': </b>' + charging + '</p></div>' +
130 + '<p><b>' + getText("Indirizzo", document.documentElement.lang) + ':</b> ' + address + '</p>' +
131 131 '<p><b>E-mail: </b>' + email + '</p>' +
132 - '<p><b>Sito: </b><a href="http://' + site + '" target="_blank">'+
132 + '<p><b>' + getText("Sito", document.documentElement.lang) + ': </b><a href="http://' + site + '" target="_blank">'+
133 133 site + '</a></p>'+
134 134 // inserimento commenti (in sospeso)
135 135 /*'<p class="btn comment-btn"><a id="create-comment" href="javascript:void(0)" onclick="openComment(this)">Inserisci Commento</a></p>' +*/
136 136 //visualizza commenti
137 - '<p class="btn comment-btn"><a id="list-comments" href="javascript:void(0)" onclick="openListComments(this)" >Visualizza Commenti</a></p>' +
137 + '<p class="btn comment-btn"><a id="list-comments" href="javascript:void(0)" onclick="openListComments(this)" >' + getText("Visualizza Commenti", document.documentElement.lang) + '</a></p>' +
138 138 '</div>'+
139 139 '</div>';
140 140 contents.push(content);
  @@ -241,7 +241,7 @@
241 241 controlBackgroundUI.appendChild(controlUI);
242 242 controlList.appendChild(controlBackgroundUI);
243 243 var controlText = document.createElement('p');
244 - controlText.innerHTML = '<b>' + ExTipologies[i].tipologia + '</b>';
244 + controlText.innerHTML = '<b>' + getText(ExTipologies[i].tipologia, document.documentElement.lang) + '</b>';
245 245 controlUI.appendChild(controlText);
246 246
247 247 google.maps.event.addDomListener(controlBackgroundUI, 'mouseover', function(){
  @@ -268,9 +268,9 @@
268 268 }
269 269
270 270 markers.forEach(function(marker) {
271 - if(marker.title != searchedMarker && that.textContent != "Tutti" && $.inArray(marker.title, currents) == -1)
271 + if(marker.title != searchedMarker && that.className != "-1001" && $.inArray(marker.title, currents) == -1)
272 272 marker.setMap(null);
273 - else if(marker.title != searchedMarker && (that.textContent == "Tutti" || $.inArray(marker.title, currents) != -1)){
273 + else if(marker.title != searchedMarker && (that.className == "-1001" || $.inArray(marker.title, currents) != -1)){
274 274 marker.setMap(map);
275 275 marker.setVisible(true);
276 276 }