removed postrender function, use render function instead
parent
ece1b56095
commit
2b1e78d195
|
@ -503,6 +503,7 @@
|
||||||
, autocomplete: _.uniq(_.flatten(app.clientList.pluck("scope")))
|
, autocomplete: _.uniq(_.flatten(app.clientList.pluck("scope")))
|
||||||
, collection: this.scopeCollection}).render().el);
|
, collection: this.scopeCollection}).render().el);
|
||||||
|
|
||||||
|
// set up refresh
|
||||||
if (!this.model.get("allowRefresh")) {
|
if (!this.model.get("allowRefresh")) {
|
||||||
$("#refreshTokenValiditySeconds", this.$el).hide();
|
$("#refreshTokenValiditySeconds", this.$el).hide();
|
||||||
}
|
}
|
||||||
|
@ -519,14 +520,15 @@
|
||||||
$("#id-token-timeout-seconds", this.$el).prop('disabled',true);
|
$("#id-token-timeout-seconds", this.$el).prop('disabled',true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// setup client secret display
|
||||||
|
this.toggleRequireClientSecret();
|
||||||
|
|
||||||
|
// setup logo display
|
||||||
|
this.previewLogo();
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
|
||||||
|
|
||||||
postRender:function() {
|
|
||||||
this.toggleRequireClientSecret();
|
|
||||||
this.previewLogo();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -601,7 +603,6 @@
|
||||||
|
|
||||||
this.clientFormView = new ClientFormView({model:client});
|
this.clientFormView = new ClientFormView({model:client});
|
||||||
$('#content').html(this.clientFormView.render().el);
|
$('#content').html(this.clientFormView.render().el);
|
||||||
this.clientFormView.postRender(); // set up the form for the given model data
|
|
||||||
},
|
},
|
||||||
|
|
||||||
editClient:function(id) {
|
editClient:function(id) {
|
||||||
|
@ -628,7 +629,6 @@
|
||||||
|
|
||||||
this.clientFormView = new ClientFormView({model:client});
|
this.clientFormView = new ClientFormView({model:client});
|
||||||
$('#content').html(this.clientFormView.render().el);
|
$('#content').html(this.clientFormView.render().el);
|
||||||
this.clientFormView.postRender(); // set up the form for the given model data
|
|
||||||
},
|
},
|
||||||
|
|
||||||
whiteList:function () {
|
whiteList:function () {
|
||||||
|
|
Loading…
Reference in New Issue