(device, folder)
| 784 | } |
| 785 | |
| 786 | function refreshCompletion(device, folder) { |
| 787 | if (device === $scope.myID) { |
| 788 | return; |
| 789 | } |
| 790 | |
| 791 | $http.get(urlbase + '/db/completion?device=' + device + '&folder=' + encodeURIComponent(folder)).success(function (data) { |
| 792 | if (!$scope.completion[device]) { |
| 793 | $scope.completion[device] = {}; |
| 794 | } |
| 795 | $scope.completion[device][folder] = data; |
| 796 | recalcCompletion(device); |
| 797 | }).error(function (data, status, headers, config) { |
| 798 | if (status === 404) { |
| 799 | console.log("refreshCompletion:", data); |
| 800 | } else { |
| 801 | $scope.emitHTTPError(data, status, headers, config); |
| 802 | } |
| 803 | }); |
| 804 | } |
| 805 | |
| 806 | function refreshConnectionStats() { |
| 807 | return $http.get(urlbase + '/system/connections').success(function (data) { |
no test coverage detected