Skip to content

Commit 5ec84ff

Browse files
Bug fix in the angular.js call to user devices and user sessions
1 parent 383ea61 commit 5ec84ff

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

static/html/index.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,11 @@ app.controller('controllerDeviceList', ['$scope', '$http', '$cookies', function
3232
$scope.lstDevices = '';
3333
} else {
3434
console.log(e.data.statCode + ' - ' + e.data.statMsg);
35-
/*
36-
var errorMsg = funPreparaErrorMessage(e);
37-
var objErrorMessage = document.getElementById('mdlGlbAlertasErro-Detalhe');
38-
objErrorMessage.innerHTML = errorMsg;
39-
errorMsg = null;
40-
objErrorMessage = null;
41-
$('#mdlGlbAlertasErro').modal();*/
4235
}
43-
//glbShowHideDiv("ng-glbLoadingTab-1",0);
4436
}, function error(e) {
4537
if (e.xhrStatus == "timeout") {
4638
//$('#mdlGlbAlertasErroTimeout').modal();
4739
}
48-
//glbShowHideDiv("ng-glbLoadingTab-1",0);
4940
});
5041
};
5142
}]);
@@ -81,20 +72,11 @@ app.controller('controllerSessionList', ['$scope', '$http', '$cookies', function
8172
$scope.lstSessions = '';
8273
} else {
8374
console.log(e.data.statCode + ' - ' + e.data.statMsg);
84-
/*
85-
var errorMsg = funPreparaErrorMessage(e);
86-
var objErrorMessage = document.getElementById('mdlGlbAlertasErro-Detalhe');
87-
objErrorMessage.innerHTML = errorMsg;
88-
errorMsg = null;
89-
objErrorMessage = null;
90-
$('#mdlGlbAlertasErro').modal();*/
9175
}
92-
//glbShowHideDiv("ng-glbLoadingTab-1",0);
9376
}, function error(e) {
9477
if (e.xhrStatus == "timeout") {
9578
//$('#mdlGlbAlertasErroTimeout').modal();
9679
}
97-
//glbShowHideDiv("ng-glbLoadingTab-1",0);
9880
});
9981
};
10082
}]);

0 commit comments

Comments
 (0)