Another localization refinement

This commit is contained in:
Kevin Giszewski
2014-02-05 18:13:09 -05:00
parent d5edb70e5b
commit 4848bdc5d6
+2 -6
View File
@@ -27,17 +27,13 @@ angular.module("umbraco").controller("Imulus.ArchetypeConfigController", functio
//load the localization info
userService.getCurrentUser()
.then(function (user) {
$scope.model.langIso = user.locale;
return user.locale;
})
.then(function(langIso){
archetypePropertyEditorResource.getLocale(langIso)
.then(function(locale){
archetypePropertyEditorResource.getDefaultLocale(locale)
.then(function(defaultLocale) {
$scope.locales.locale = locale;
});
});
$scope.locales.locale = locale;
});
});
$scope.getLocales = function(){