1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

chore(jshint): update jshint library and configuration (#581)

This commit is contained in:
Anthony Lapenna 2017-02-10 14:34:56 +13:00 committed by GitHub
parent 2f3475b96a
commit 9ebe2d96dd
3 changed files with 9 additions and 8 deletions

View file

@ -117,12 +117,6 @@ function (Pagination, $scope, Messages, $timeout, Container, ContainerTop, $stat
});
$scope.networkLegend = $sce.trustAsHtml(networkChart.generateLegend());
function setUpdateStatsTimeout() {
if(!destroyed) {
timeout = $timeout(updateStats, 5000);
}
}
function updateStats() {
Container.stats({id: $stateParams.id}, function (d) {
var arr = Object.keys(d).map(function (key) {
@ -206,6 +200,12 @@ function (Pagination, $scope, Messages, $timeout, Container, ContainerTop, $stat
}
});
function setUpdateStatsTimeout() {
if(!destroyed) {
timeout = $timeout(updateStats, 5000);
}
}
Container.get({id: $stateParams.id}, function (d) {
$scope.container = d;
}, function (e) {