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]); 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() balloon = L.popup()
.setLatLng([$('#addPointLat').val(), $('#addPointLng').val()]) .setLatLng([$('#addPointLat').val(), $('#addPointLng').val()])
.setContent(text) .setContent(text)
.openOn(myMap); .openOn(myMap);
setTimeout(function () { // setTimeout(function () {
balloon._close(); // balloon._close();
delete balloon; // delete balloon;
}, 2000); // }, 2000);
obj = {}; obj = {};
obj.id = data; obj.id = data;