kopia lustrzana https://github.com/FacilMap/facilmap
Fixing loading screen
rodzic
ac96715927
commit
5b8fe9f69a
|
@ -59,6 +59,7 @@
|
||||||
$scope.currentMarker = null;
|
$scope.currentMarker = null;
|
||||||
$scope.messages = [ ];
|
$scope.messages = [ ];
|
||||||
$scope.padUrl = location.protocol + "//" + location.host + location.pathname;
|
$scope.padUrl = location.protocol + "//" + location.host + location.pathname;
|
||||||
|
$scope.error = false;
|
||||||
|
|
||||||
socket.emit("setPadId", location.pathname.match(/[^\/]*$/)[0]);
|
socket.emit("setPadId", location.pathname.match(/[^\/]*$/)[0]);
|
||||||
|
|
||||||
|
@ -288,7 +289,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("disconnect", function() {
|
socket.on("disconnect", function() {
|
||||||
$scope.loaded = false;
|
$scope.error = true;
|
||||||
|
|
||||||
$scope.showMessage("error", "The connection to the server was lost.");
|
$scope.showMessage("error", "The connection to the server was lost.");
|
||||||
})
|
})
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
Loading...
|
Loading...
|
||||||
</div>
|
</div>
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
<div id="map-disabled-cover" ng-hide="!error && loaded"></div>
|
<div id="map-disabled-cover" ng-show="!loaded || error"></div>
|
||||||
|
|
||||||
<ul id="toolbox">
|
<ul id="toolbox">
|
||||||
<li><a href="javascript:" ng-click="addMarker()">Add marker</a></li>
|
<li><a href="javascript:" ng-click="addMarker()">Add marker</a></li>
|
||||||
|
|
Ładowanie…
Reference in New Issue