Fixed vanishing players whem refreshing after switching back from auto-update.

This commit is contained in:
Sascha L. Teichmann 2015-03-13 16:06:06 +01:00
parent 4b4c620c35
commit b54b2b6b91

View File

@ -132,7 +132,6 @@ map.addControl(layersControl);
manualUpdateControl = L.easyButton('fa-refresh',
function (){
players.refresh();
var tiles = document.getElementsByTagName("img");
for (var i = 0; i < tiles.length; i++) {
var img = tiles[i];
@ -147,6 +146,7 @@ manualUpdateControl = L.easyButton('fa-refresh',
}
}
//map._resetView(map.getCenter(), map.getZoom(), false);
players.refresh("/players");
},
'Update view'
);