kopia lustrzana https://github.com/cyoung/stratux
fix formatting
rodzic
a953276386
commit
0be177e621
|
@ -45,9 +45,9 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
|
|||
};
|
||||
|
||||
socket.onmessage = function (msg) {
|
||||
if (($scope === undefined) || ($scope === null)) {
|
||||
if ($scope === undefined || $scope === null) {
|
||||
socket.close();
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
loadSituation(msg.data);
|
||||
|
@ -67,7 +67,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
|
|||
function sizeMap() {
|
||||
var width = 0;
|
||||
var div = document.getElementById("map_display");
|
||||
if(div==null){
|
||||
if (div==null) {
|
||||
return width;
|
||||
}
|
||||
var el = div.parentElement;
|
||||
|
|
|
@ -211,8 +211,7 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval, craftService)
|
|||
|
||||
function getTowers() {
|
||||
// Homepage status polling towers only if they are active
|
||||
if($scope.visible_uat===undefined || $scope.visible_uat==false)
|
||||
{
|
||||
if ($scope.visible_uat===undefined || $scope.visible_uat==false) {
|
||||
return;
|
||||
}
|
||||
// Simple GET request example (note: responce is asynchronous)
|
||||
|
|
Ładowanie…
Reference in New Issue