Fixing loading screen

before-bootstrap
Candid Dauth 2014-04-10 01:58:36 +02:00
rodzic ac96715927
commit 5b8fe9f69a
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -59,6 +59,7 @@
$scope.currentMarker = null;
$scope.messages = [ ];
$scope.padUrl = location.protocol + "//" + location.host + location.pathname;
$scope.error = false;
socket.emit("setPadId", location.pathname.match(/[^\/]*$/)[0]);
@ -288,7 +289,7 @@
});
socket.on("disconnect", function() {
$scope.loaded = false;
$scope.error = true;
$scope.showMessage("error", "The connection to the server was lost.");
})

Wyświetl plik

@ -13,7 +13,7 @@
Loading...
</div>
<div id="map"></div>
<div id="map-disabled-cover" ng-hide="!error &amp;&amp; loaded"></div>
<div id="map-disabled-cover" ng-show="!loaded || error"></div>
<ul id="toolbox">
<li><a href="javascript:" ng-click="addMarker()">Add marker</a></li>