提交 59c06234 编写于 作者: F Floran Brutel

Fix loading of limits

Remove useless method
Fix variable name of plugins
上级 5d8b177c
......@@ -48,7 +48,11 @@ glancesApp.controller('statsController', function($scope, $http, $interval, $q,
}
$scope.init_limits = function() {
$scope.plugins_limits();
$http.get('/api/2/all/limits').success(function(response, status, headers, config) {
$scope.pluginLimits = response
}).error(function(response, status, headers, config) {
console.log('error : ' + response+ status + headers + config);
});
}
$scope.init_help = function() {
......@@ -65,14 +69,6 @@ glancesApp.controller('statsController', function($scope, $http, $interval, $q,
}
}
$scope.plugins_limits = function() {
$http.get('/api/2/all/limits').success(function(response, status, headers, config) {
$scope.limits = response
}).error(function(response, status, headers, config) {
console.log('error : ' + response+ status + headers + config);
});
}
var canceler = undefined;
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册