renamed token expiration form field ids from -seconds to -time.
parent
2242db5c11
commit
3f01ae1a71
|
@ -288,9 +288,9 @@ var ClientFormView = Backbone.View.extend({
|
||||||
events:{
|
events:{
|
||||||
"click .btn-save":"saveClient",
|
"click .btn-save":"saveClient",
|
||||||
"click #allowRefresh" : "toggleRefreshTokenTimeout",
|
"click #allowRefresh" : "toggleRefreshTokenTimeout",
|
||||||
"click #disableAccessTokenTimeout" : function(){ $("#access-token-timeout-seconds", this.$el).prop('disabled',!$("#access-token-timeout-seconds", this.$el).prop('disabled')); },
|
"click #disableAccessTokenTimeout" : function(){ $("#access-token-timeout-time", this.$el).prop('disabled',!$("#access-token-timeout-time", this.$el).prop('disabled')); },
|
||||||
"click #disableIDTokenTimeout" : function(){ $("#id-token-timeout-seconds", this.$el).prop('disabled',!$("#id-token-timeout-seconds", this.$el).prop('disabled')); },
|
"click #disableIDTokenTimeout" : function(){ $("#id-token-timeout-time", this.$el).prop('disabled',!$("#id-token-timeout-time", this.$el).prop('disabled')); },
|
||||||
"click #disableRefreshTokenTimeout" : function(){ $("#refresh-token-timeout-seconds", this.$el).prop('disabled',!$("#refresh-token-timeout-seconds", this.$el).prop('disabled')); },
|
"click #disableRefreshTokenTimeout" : function(){ $("#refresh-token-timeout-time", this.$el).prop('disabled',!$("#refresh-token-timeout-time", this.$el).prop('disabled')); },
|
||||||
"click .btn-cancel": function() { window.history.back(); return false; },
|
"click .btn-cancel": function() { window.history.back(); return false; },
|
||||||
"change #requireClientSecret":"toggleRequireClientSecret",
|
"change #requireClientSecret":"toggleRequireClientSecret",
|
||||||
"change #displayClientSecret":"toggleDisplayClientSecret",
|
"change #displayClientSecret":"toggleDisplayClientSecret",
|
||||||
|
@ -616,15 +616,15 @@ var ClientFormView = Backbone.View.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.model.get("accessTokenValiditySeconds") == null) {
|
if (this.model.get("accessTokenValiditySeconds") == null) {
|
||||||
$("#access-token-timeout-seconds", this.$el).prop('disabled',true);
|
$("#access-token-timeout-time", this.$el).prop('disabled',true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.model.get("refreshTokenValiditySeconds") == null) {
|
if (this.model.get("refreshTokenValiditySeconds") == null) {
|
||||||
$("#refresh-token-timeout-seconds", this.$el).prop('disabled',true);
|
$("#refresh-token-timeout-time", this.$el).prop('disabled',true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.model.get("idTokenValiditySeconds") == null) {
|
if (this.model.get("idTokenValiditySeconds") == null) {
|
||||||
$("#id-token-timeout-seconds", this.$el).prop('disabled',true);
|
$("#id-token-timeout-time", this.$el).prop('disabled',true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// toggle other dynamic fields
|
// toggle other dynamic fields
|
||||||
|
|
|
@ -361,7 +361,7 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<input type="text" class="" value="<%=(accessTokenValiditySeconds == null ? '' : accessTokenValiditySeconds)%>" id="access-token-timeout-seconds" size="16" style="width:120px;">
|
<input type="text" class="" value="<%=(accessTokenValiditySeconds == null ? '' : accessTokenValiditySeconds)%>" id="access-token-timeout-time" size="16" style="width:120px;">
|
||||||
<select style="width:120px;">
|
<select style="width:120px;">
|
||||||
<option>seconds</option>
|
<option>seconds</option>
|
||||||
<option>minutes</option>
|
<option>minutes</option>
|
||||||
|
@ -382,7 +382,7 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<input type="text" class="" value="<%=(idTokenValiditySeconds == null ? '' : idTokenValiditySeconds)%>" id="id-token-timeout-seconds" size="16" style="width:120px;">
|
<input type="text" class="" value="<%=(idTokenValiditySeconds == null ? '' : idTokenValiditySeconds)%>" id="id-token-timeout-time" size="16" style="width:120px;">
|
||||||
<select style="width:120px;">
|
<select style="width:120px;">
|
||||||
<option>seconds</option>
|
<option>seconds</option>
|
||||||
<option>minutes</option>
|
<option>minutes</option>
|
||||||
|
@ -415,7 +415,7 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<input type="text" class="" value="<%=(refreshTokenValiditySeconds == null ? '' : refreshTokenValiditySeconds)%>" id="refresh-token-timeout-seconds" size="16" style="width:120px;">
|
<input type="text" class="" value="<%=(refreshTokenValiditySeconds == null ? '' : refreshTokenValiditySeconds)%>" id="refresh-token-timeout-time" size="16" style="width:120px;">
|
||||||
<select style="width:120px;">
|
<select style="width:120px;">
|
||||||
<option>seconds</option>
|
<option>seconds</option>
|
||||||
<option>minutes</option>
|
<option>minutes</option>
|
||||||
|
|
Loading…
Reference in New Issue