Skip to content

Commit 0d82710

Browse files
committed
updated "more information" display
1 parent 95a876f commit 0d82710

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

openid-connect-server-webapp/src/main/webapp/WEB-INF/views/approve.jsp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@
8282
</div>
8383
</c:if>
8484
<c:if test="${ (not empty client.clientDescription) || (not empty client.clientUri) || (not empty client.policyUri) || (not empty client.tosUri) || (not empty contacts) }">
85-
<div class="alert alert-info">
85+
<div class="muted moreInformationContainer">
8686
${client.clientDescription}
8787
<c:if test="${ (not empty client.clientUri) || (not empty client.policyUri) || (not empty client.tosUri) || (not empty contacts) }">
8888
<div id="toggleMoreInformation" style="cursor: pointer;">
89-
<i class="icon-chevron-right"></i> more information
89+
<small><i class="icon-chevron-right"></i> more information</small>
9090
</div>
9191
<div id="moreInformation" class="hide">
9292
<ul>
@@ -249,10 +249,12 @@ $(document).ready(function() {
249249
event.preventDefault();
250250
if ($('#moreInformation').is(':visible')) {
251251
// hide it
252+
$('.moreInformationContainer', this.el).removeClass('alert').removeClass('alert-info').addClass('muted');
252253
$('#moreInformation').hide('fast');
253254
$('#toggleMoreInformation i').attr('class', 'icon-chevron-right');
254255
} else {
255256
// show it
257+
$('.moreInformationContainer', this.el).addClass('alert').addClass('alert-info').removeClass('muted');
256258
$('#moreInformation').show('fast');
257259
$('#toggleMoreInformation i').attr('class', 'icon-chevron-down');
258260
}

openid-connect-server-webapp/src/main/webapp/resources/js/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,15 @@ var ClientView = Backbone.View.extend({
246246
e.preventDefault();
247247
if ($('.moreInformation', this.el).is(':visible')) {
248248
// hide it
249+
$('.moreInformationContainer', this.el).removeClass('alert').removeClass('alert-info').addClass('muted');
249250
$('.moreInformation', this.el).hide('fast');
250251
$('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-right');
251-
$('.moreInformationContainer', this.el).removeClass('alert').removeClass('alert-info').addClass('muted');
252252

253253
} else {
254254
// show it
255+
$('.moreInformationContainer', this.el).addClass('alert').addClass('alert-info').removeClass('muted');
255256
$('.moreInformation', this.el).show('fast');
256257
$('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-down');
257-
$('.moreInformationContainer', this.el).addClass('alert').addClass('alert-info').removeClass('muted');
258258
}
259259
},
260260

0 commit comments

Comments
 (0)