From 6a41e9847487b56326cb1d56ee2472b75caa9545 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Wed, 18 Feb 2015 17:39:00 -0500 Subject: [PATCH] added display flag for default scopes --- .../src/main/webapp/resources/js/locale/en/messages.json | 3 ++- .../src/main/webapp/resources/js/scope.js | 3 ++- .../src/main/webapp/resources/template/admin.html | 2 +- .../src/main/webapp/resources/template/scope.html | 3 +++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json b/openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json index b385958db..810c6c5fd 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json @@ -296,7 +296,8 @@ "confirm": "Are you sure sure you would like to delete this scope? Clients that have this scope will still be able to ask for it.", "new": "New Scope", "text": "There are no system scopes defined. Clients may still have custom scopes.", - "tooltip-restricted": "This scope can be used only by adminisrtators. It is not available for dynamic registration." + "tooltip-restricted": "This scope can be used only by adminisrtators. It is not available for dynamic registration.", + "tooltip-default": "This scope is automatically assigned to newly registered clients." } }, "token": { diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/scope.js b/openid-connect-server-webapp/src/main/webapp/resources/js/scope.js index 47234d7f9..732d44456 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/scope.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/scope.js @@ -99,7 +99,8 @@ var SystemScopeView = Backbone.View.extend({ render:function (eventName) { this.$el.html(this.template(this.model.toJSON())); - this.$('.restricted').tooltip({title: $.t('scope.system-scope-table.tooltip-restricted')}); + $('.restricted', this.el).tooltip({title: $.t('scope.system-scope-table.tooltip-restricted')}); + $('.default', this.el).tooltip({title: $.t('scope.system-scope-table.tooltip-default')}); return this; $(this.el).i18n(); diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/admin.html b/openid-connect-server-webapp/src/main/webapp/resources/template/admin.html index 831473959..eb1511c0a 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/template/admin.html +++ b/openid-connect-server-webapp/src/main/webapp/resources/template/admin.html @@ -36,7 +36,7 @@ <% if (!opt.toggle) { %> <% } else { %> - /> + /> <% } %> diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html b/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html index 8df4cad33..1b32d104c 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html +++ b/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html @@ -47,6 +47,9 @@