From 37348fce3a1af5a5ac1e1d74af921d8be61fee43 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Sun, 4 Aug 2013 21:53:26 -0400 Subject: [PATCH] small improvents --- .../src/main/webapp/saas/admin/js/controllers.js | 6 ++++-- .../src/main/webapp/saas/admin/partials/menu.html | 6 ++++-- .../webapp/saas/admin/partials/realm-menu.html | 14 ++++++++++++-- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/js/controllers.js b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/js/controllers.js index dbcf2807c7..7335234f09 100755 --- a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/js/controllers.js +++ b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/js/controllers.js @@ -176,10 +176,12 @@ module.controller('RealmDropdownCtrl', function($scope, Realm, Current, Auth, $l var show = false; for (var key in Current.realms) { if (typeof Current.realms[key] != "function") { + if (Current.realms[key] == Current.realm) { + $scope.currentRealmId = key; + } show = true; - break; } - } + } return Auth.loggedIn && show; } }); diff --git a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html index f0e52ac84b..a7b51ae686 100755 --- a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html +++ b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/menu.html @@ -12,7 +12,9 @@ --> -

Realm:

+ @@ -30,7 +32,7 @@ diff --git a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/realm-menu.html b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/realm-menu.html index bfdbbe5bf0..32bd251998 100755 --- a/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/realm-menu.html +++ b/examples/as7-eap-demo/server/src/main/webapp/saas/admin/partials/realm-menu.html @@ -1,11 +1,21 @@
\ No newline at end of file