Revert "removed postrender function, use render function instead"

This reverts commit 2b1e78d195.
pull/210/head
Justin Richer 2012-09-13 11:26:52 -04:00
parent ebf77bea68
commit 0b6aebfefe
1 changed files with 7 additions and 7 deletions

View File

@ -518,7 +518,6 @@
, autocomplete: _.uniq(_.flatten(app.clientList.pluck("scope")))
, collection: this.scopeCollection}).render().el);
// set up refresh
if (!this.model.get("allowRefresh")) {
$("#refreshTokenValiditySeconds", this.$el).hide();
}
@ -535,15 +534,14 @@
$("#id-token-timeout-seconds", this.$el).prop('disabled',true);
}
// setup client secret display
this.toggleRequireClientSecret();
// setup logo display
this.previewLogo();
return this;
}
},
postRender:function() {
this.toggleRequireClientSecret();
this.previewLogo();
}
});
@ -618,6 +616,7 @@
this.clientFormView = new ClientFormView({model:client});
$('#content').html(this.clientFormView.render().el);
this.clientFormView.postRender(); // set up the form for the given model data
},
editClient:function(id) {
@ -644,6 +643,7 @@
this.clientFormView = new ClientFormView({model:client});
$('#content').html(this.clientFormView.render().el);
this.clientFormView.postRender(); // set up the form for the given model data
},
whiteList:function () {