From 4848bdc5d6dfb72c3ef79cfbb9950b4a1ea9fa76 Mon Sep 17 00:00:00 2001 From: Kevin Giszewski Date: Wed, 5 Feb 2014 18:13:09 -0500 Subject: [PATCH] Another localization refinement --- app/controllers/config.controller.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/controllers/config.controller.js b/app/controllers/config.controller.js index 3c70095..26c760b 100644 --- a/app/controllers/config.controller.js +++ b/app/controllers/config.controller.js @@ -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(){