Commit d4482e0b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

do not reset list position on click

parent 6e51419e
......@@ -3,6 +3,8 @@ var List;
var markers = [];
var BLOCK_MOVEEND = false;
$(function(){
//init();
......@@ -209,6 +211,7 @@ function register_row_events(elem){
var lat = $($(item).find("latitude")[0]).text();
var lng = $($(item).find("longitude")[0]).text();
BLOCK_MOVEEND = true;
map.panTo(new L.LatLng(lat, lng));
if (markers[index]!=undefined){
......@@ -345,10 +348,16 @@ function init_maps(){
window.history.pushState("", "x3d models index", "?lat="+center.lat+"&lng="+center.lng+"&zoom="+zoom);
if (!BLOCK_MOVEEND){
$("#model_table").css({
top: "0px"
});
}else{
BLOCK_MOVEEND = false;
}
});
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment