From 4fcbbe639f1f4535df1078d19d2ed375c177e1ce Mon Sep 17 00:00:00 2001 From: Michael Jett Date: Wed, 29 Aug 2012 13:54:04 -0400 Subject: [PATCH] visual error indicators for redirect uri and scope --- openid-connect-server/src/main/webapp/resources/js/app.js | 3 +++ .../src/main/webapp/resources/template/client.html | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openid-connect-server/src/main/webapp/resources/js/app.js b/openid-connect-server/src/main/webapp/resources/js/app.js index 8c553f03f..2e6325c12 100644 --- a/openid-connect-server/src/main/webapp/resources/js/app.js +++ b/openid-connect-server/src/main/webapp/resources/js/app.js @@ -89,6 +89,9 @@ // if it's valid and doesn't already exist if (model.isValid() && this.collection.where({item: input_value}).length < 1) { this.collection.add(model); + } else { + // add a visual error indicator + $(".control-group", this.el).addClass('error') } }, diff --git a/openid-connect-server/src/main/webapp/resources/template/client.html b/openid-connect-server/src/main/webapp/resources/template/client.html index 750933961..8cb4e4790 100644 --- a/openid-connect-server/src/main/webapp/resources/template/client.html +++ b/openid-connect-server/src/main/webapp/resources/template/client.html @@ -225,7 +225,8 @@