Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Duplicati/Server/webroot/ngax/scripts/controllers/AboutController.js')
-rw-r--r--Duplicati/Server/webroot/ngax/scripts/controllers/AboutController.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/AboutController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/AboutController.js
index f87fd30ad..7fce27223 100644
--- a/Duplicati/Server/webroot/ngax/scripts/controllers/AboutController.js
+++ b/Duplicati/Server/webroot/ngax/scripts/controllers/AboutController.js
@@ -19,27 +19,27 @@ backupApp.controller('AboutController', function($scope, $location, BrandingServ
};
AppService.get('/acknowledgements').then(function(resp) {
- $scope.Acknowledgements = resp.data.Acknowledgements;
+ $scope.Acknowledgements = resp.data.Acknowledgements;
});
$scope.$watch('Page', function() {
- if ($scope.Page == 'changelog' && $scope.ChangeLog == null) {
- AppService.get('/changelog?from-update=false').then(function(resp) {
- $scope.ChangeLog = resp.data.Changelog;
- });
- } else if ($scope.Page == 'licenses' && $scope.Licenses == null) {
- AppService.get('/licenses').then(function(resp) {
- var res = [];
- for(var n in resp.data) {
- var r = JSON.parse(resp.data[n].Jsondata);
+ if ($scope.Page == 'changelog' && $scope.ChangeLog == null) {
+ AppService.get('/changelog?from-update=false').then(function(resp) {
+ $scope.ChangeLog = resp.data.Changelog;
+ });
+ } else if ($scope.Page == 'licenses' && $scope.Licenses == null) {
+ AppService.get('/licenses').then(function(resp) {
+ var res = [];
+ for(var n in resp.data) {
+ var r = JSON.parse(resp.data[n].Jsondata);
if (r != null) {
r.licenselink = r.licenselink || licenses[r.license] || '#';
res.push(r);
- }
- }
- $scope.Licenses = res;
- });
- }
+ }
+ }
+ $scope.Licenses = res;
+ });
+ }
});
$scope.doShowUpdateChangelog = function() {
@@ -59,4 +59,4 @@ backupApp.controller('AboutController', function($scope, $location, BrandingServ
};
-}); \ No newline at end of file
+});