From a85b1f5d74f8695551421a91e017c8ee5426278e Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Fri, 21 Dec 2012 15:35:33 -0500 Subject: [PATCH] split approved sites into two tables --- .../src/main/webapp/resources/js/admin.js | 8 ++++++- .../main/webapp/resources/template/admin.html | 24 +++++++++++++++---- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/openid-connect-server/src/main/webapp/resources/js/admin.js b/openid-connect-server/src/main/webapp/resources/js/admin.js index 5af2dc0c8..99070784d 100644 --- a/openid-connect-server/src/main/webapp/resources/js/admin.js +++ b/openid-connect-server/src/main/webapp/resources/js/admin.js @@ -673,7 +673,13 @@ var client = app.clientList.getByClientId(approvedSite.get('clientId')); if (client != null) { - $('#grant-table', this.el).append(new ApprovedSiteView({model: approvedSite, client: client}).render().el); + + if (approvedSite.get('whitelistedSite') != null) { + $('#grant-whitelist-table', this.el).append(new ApprovedSiteView({model: approvedSite, client: client}).render().el); + } else { + $('#grant-table', this.el).append(new ApprovedSiteView({model: approvedSite, client: client}).render().el); + } + } }, this); diff --git a/openid-connect-server/src/main/webapp/resources/template/admin.html b/openid-connect-server/src/main/webapp/resources/template/admin.html index 782beb537..83076702a 100644 --- a/openid-connect-server/src/main/webapp/resources/template/admin.html +++ b/openid-connect-server/src/main/webapp/resources/template/admin.html @@ -373,12 +373,14 @@