unit select box appropriately disabled after saving now.

pull/650/head
William Kim 2013-08-15 14:03:25 -04:00 committed by Justin Richer
parent 85a8532cc7
commit bc4d52dc18
1 changed files with 3 additions and 0 deletions

View File

@ -653,14 +653,17 @@ var ClientFormView = Backbone.View.extend({
if (this.model.get("accessTokenValiditySeconds") == null) {
$("#access-token-timeout-time", this.$el).prop('disabled',true);
$("#access-token-timeout-unit", this.$el).prop('disabled',true);
}
if (this.model.get("refreshTokenValiditySeconds") == null) {
$("#refresh-token-timeout-time", this.$el).prop('disabled',true);
$("#refresh-token-timeout-unit", this.$el).prop('disabled',true);
}
if (this.model.get("idTokenValiditySeconds") == null) {
$("#id-token-timeout-time", this.$el).prop('disabled',true);
$("#id-token-timeout-unit", this.$el).prop('disabled',true);
}
// toggle other dynamic fields