Notice: Undefined offset: 1 in /home/plusensd/steelhammer.com.ua/route.php on line 89
$(function() {
$(".article-content").on("savechanges", function() {
post({ content: $(this).html() });
});
$("#map-canvas").click(function() {
if ($("body").hasClass("admin")) {
var oldLatLngZoom = [$(this).attr("lat"), $(this).attr("lng"), $(this).attr("zoom")];
var newLatLngZoom = prompt("Введите долготу, широту и масштаб через запятую:", oldLatLngZoom.join(","));
if (newLatLngZoom && newLatLngZoom != oldLatLngZoom) {
newLatLngZoom = newLatLngZoom.split(",");
post({ latitude: newLatLngZoom[0], longitude: newLatLngZoom[1], zoom: newLatLngZoom[2] }, function() {
location.reload();
});
}
}
});
});