ADD бегающий кружок при закгрузке картинок

This commit is contained in:
Krivchikov Dmitry 2014-12-05 21:53:33 +03:00
parent 34d1aec687
commit 560f09c888
2 changed files with 5 additions and 4 deletions

BIN
public/img/loading.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -392,14 +392,15 @@ function addPoint()
markers.removeLayer(points[id]);
}
text = '<center><img src="/img/loading.gif" style="height: 89px; width: 89px;" /><br/><br/><b style="font-size: 1.2em;">Подождите пожалкуйста!</b><br/>Изображения загружаются на сайт...</center>'
balloon = L.popup()
.setLatLng([$('#addPointLat').val(), $('#addPointLng').val()])
.setContent(text)
.openOn(myMap);
setTimeout(function () {
balloon._close();
delete balloon;
}, 2000);
// setTimeout(function () {
// balloon._close();
// delete balloon;
// }, 2000);
obj = {};
obj.id = data;