From 60faf96e00ad8e50aee68c9426926bb712a151a1 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Thu, 10 Mar 2016 12:50:25 -0500 Subject: [PATCH] modified UI for HEART mode --- .../src/main/webapp/resources/js/client.js | 5 +- .../src/main/webapp/resources/js/dynreg.js | 3 +- .../webapp/resources/template/client.html | 288 +++++++++--------- .../webapp/resources/template/dynreg.html | 4 +- 4 files changed, 154 insertions(+), 146 deletions(-) diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/client.js b/openid-connect-server-webapp/src/main/webapp/resources/js/client.js index 0fe8b177f..e94347857 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/client.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/client.js @@ -1083,8 +1083,9 @@ var ClientFormView = Backbone.View.extend({ }, render:function (eventName) { - - $(this.el).html(this.template(this.model.toJSON())); + + var data = {client: this.model.toJSON(), heartMode: heartMode}; + $(this.el).html(this.template(data)); var _self = this; diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/dynreg.js b/openid-connect-server-webapp/src/main/webapp/resources/js/dynreg.js index 54711d395..5abb0112c 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/dynreg.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/dynreg.js @@ -540,7 +540,8 @@ var DynRegEditView = Backbone.View.extend({ }, render:function() { - $(this.el).html(this.template({client: this.model.toJSON(), userInfo: getUserInfo()})); + var data = {client: this.model.toJSON(), userInfo: getUserInfo(), heartMode: heartMode}; + $(this.el).html(this.template(data)); this.listWidgetViews = []; diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/client.html b/openid-connect-server-webapp/src/main/webapp/resources/template/client.html index 8c4ddfc6e..f1bba8641 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/template/client.html +++ b/openid-connect-server-webapp/src/main/webapp/resources/template/client.html @@ -176,7 +176,7 @@