Use double quotes consistently in javascript code
This commit is contained in:
parent
87127d41e9
commit
eb7678145a
29 changed files with 650 additions and 649 deletions
|
@ -10,7 +10,7 @@ $(document).ready(function () {
|
|||
}
|
||||
|
||||
marker = L.marker(e.latlng, {icon: OSM.getUserIcon()}).addTo(map)
|
||||
.bindPopup(I18n.t('diary_entries.edit.marker_text'));
|
||||
.bindPopup(I18n.t("diary_entries.edit.marker_text"));
|
||||
}
|
||||
|
||||
$("#usemap").click(function (e) {
|
||||
|
@ -21,7 +21,7 @@ $(document).ready(function () {
|
|||
|
||||
var params = $("#map").data();
|
||||
var centre = [params.lat, params.lon];
|
||||
var position = $('html').attr('dir') === 'rtl' ? 'topleft' : 'topright';
|
||||
var position = $("html").attr("dir") === "rtl" ? "topleft" : "topright";
|
||||
|
||||
map = L.map("map", {
|
||||
attributionControl: false,
|
||||
|
@ -35,7 +35,7 @@ $(document).ready(function () {
|
|||
|
||||
if ($("#latitude").val() && $("#longitude").val()) {
|
||||
marker = L.marker(centre, {icon: OSM.getUserIcon()}).addTo(map)
|
||||
.bindPopup(I18n.t('diary_entries.edit.marker_text'));
|
||||
.bindPopup(I18n.t("diary_entries.edit.marker_text"));
|
||||
}
|
||||
|
||||
map.on("click", setLocation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue