mirror of https://github.com/portainer/portainer
chore(jshint): update jshint library and configuration (#581)
parent
2f3475b96a
commit
9ebe2d96dd
|
@ -117,12 +117,6 @@ function (Pagination, $scope, Messages, $timeout, Container, ContainerTop, $stat
|
||||||
});
|
});
|
||||||
$scope.networkLegend = $sce.trustAsHtml(networkChart.generateLegend());
|
$scope.networkLegend = $sce.trustAsHtml(networkChart.generateLegend());
|
||||||
|
|
||||||
function setUpdateStatsTimeout() {
|
|
||||||
if(!destroyed) {
|
|
||||||
timeout = $timeout(updateStats, 5000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateStats() {
|
function updateStats() {
|
||||||
Container.stats({id: $stateParams.id}, function (d) {
|
Container.stats({id: $stateParams.id}, function (d) {
|
||||||
var arr = Object.keys(d).map(function (key) {
|
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) {
|
Container.get({id: $stateParams.id}, function (d) {
|
||||||
$scope.container = d;
|
$scope.container = d;
|
||||||
}, function (e) {
|
}, function (e) {
|
||||||
|
|
|
@ -338,7 +338,8 @@ module.exports = function (grunt) {
|
||||||
curly: true,
|
curly: true,
|
||||||
eqeqeq: true,
|
eqeqeq: true,
|
||||||
immed: true,
|
immed: true,
|
||||||
latedef: true,
|
indent: 2,
|
||||||
|
latedef: 'nofunc',
|
||||||
newcap: true,
|
newcap: true,
|
||||||
noarg: true,
|
noarg: true,
|
||||||
sub: true,
|
sub: true,
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
"grunt-contrib-concat": "~0.1.3",
|
"grunt-contrib-concat": "~0.1.3",
|
||||||
"grunt-contrib-copy": "~0.4.0",
|
"grunt-contrib-copy": "~0.4.0",
|
||||||
"grunt-contrib-cssmin": "^1.0.2",
|
"grunt-contrib-cssmin": "^1.0.2",
|
||||||
"grunt-contrib-jshint": "~0.2.0",
|
"grunt-contrib-jshint": "^1.1.0",
|
||||||
"grunt-contrib-uglify": "^0.9.2",
|
"grunt-contrib-uglify": "^0.9.2",
|
||||||
"grunt-contrib-watch": "~0.3.1",
|
"grunt-contrib-watch": "~0.3.1",
|
||||||
"grunt-filerev": "^2.3.1",
|
"grunt-filerev": "^2.3.1",
|
||||||
|
|
Loading…
Reference in New Issue