Fix loading of limits

Remove useless method
Fix variable name of plugins
This commit is contained in:
Floran Brutel 2015-05-08 12:15:48 +02:00
parent 5d8b177c4f
commit 59c06234f9

View File

@ -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;
/**