diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/services.js b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/services.js index 0398bfa63c..5e9fefda63 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/services.js +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/services.js @@ -884,21 +884,22 @@ module.factory('ClientOrigins', function($resource) { }); module.factory('Current', function(Realm, $route, $rootScope) { - var current = {}; - - current.realms = {}; - current.realm = null; + var current = { + realms: {}, + realm: null + }; $rootScope.$on('$routeChangeStart', function() { - current.realm = null; current.realms = Realm.query(null, function(realms) { + var currentRealm = null; if ($route.current.params.realm) { for (var i = 0; i < realms.length; i++) { if (realms[i].realm == $route.current.params.realm) { - current.realm = realms[i]; + currentRealm = realms[i]; } } } + current.realm = currentRealm; }); }); diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/menu.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/menu.html index 8c59d131c3..c85e83e7ba 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/menu.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/menu.html @@ -22,34 +22,4 @@ - -
\ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-create.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-create.html index a8cad68154..687ea8e14f 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-create.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-create.html @@ -1,4 +1,4 @@ -