GUACAMOLE-526: Update webapp to angular 1.6.9.
This commit is contained in:
1 parent
03281667b4
commit
b3eeb36b87
36 files changed
+301
-159
No files matched your search
@@ -74,7 +74,7 @@ angular.module('locale').factory('translationLoader', ['$injector', function tra
|
||||
languageService.getLanguages()
|
||||
|
||||
// Attempt to retrieve translation if language is supported
|
||||
.success(function retrievedLanguages(languages) {
|
||||
.then(function retrievedLanguages(languages) {
|
||||
|
||||
// Skip retrieval if language is not supported
|
||||
if (!(currentKey in languages)) {
|
||||
@@ -90,18 +90,17 @@ angular.module('locale').factory('translationLoader', ['$injector', function tra
|
||||
})
|
||||
|
||||
// Resolve promise if translation retrieved successfully
|
||||
.success(function translationFileRetrieved(translation) {
|
||||
deferred.resolve(translation);
|
||||
})
|
||||
.then(function translationFileRetrieved(request) {
|
||||
deferred.resolve(request.data);
|
||||
},
|
||||
|
||||
// Retry with remaining languages if translation file could not be
|
||||
// retrieved
|
||||
.error(tryNextTranslation);
|
||||
|
||||
})
|
||||
tryNextTranslation);
|
||||
},
|
||||
|
||||
// Retry with remaining languages if translation does not exist
|
||||
.error(tryNextTranslation);
|
||||
tryNextTranslation);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user