Fix field definition in the model object.
parent
0c09a17f59
commit
ffc5782810
|
@ -586,7 +586,7 @@ var ClientFormView = Backbone.View.extend({
|
||||||
this.redirectUrisCollection = new Backbone.Collection();
|
this.redirectUrisCollection = new Backbone.Collection();
|
||||||
this.scopeCollection = new Backbone.Collection();
|
this.scopeCollection = new Backbone.Collection();
|
||||||
this.contactsCollection = new Backbone.Collection();
|
this.contactsCollection = new Backbone.Collection();
|
||||||
this.defaultAcrValuesCollection = new Backbone.Collection();
|
this.defaultACRvaluesCollection = new Backbone.Collection();
|
||||||
this.requestUrisCollection = new Backbone.Collection();
|
this.requestUrisCollection = new Backbone.Collection();
|
||||||
this.postLogoutRedirectUrisCollection = new Backbone.Collection();
|
this.postLogoutRedirectUrisCollection = new Backbone.Collection();
|
||||||
this.claimsRedirectUrisCollection = new Backbone.Collection();
|
this.claimsRedirectUrisCollection = new Backbone.Collection();
|
||||||
|
@ -949,7 +949,7 @@ var ClientFormView = Backbone.View.extend({
|
||||||
defaultMaxAge: parseInt($('#defaultMaxAge input').val()),
|
defaultMaxAge: parseInt($('#defaultMaxAge input').val()),
|
||||||
contacts: this.contactsCollection.pluck('item'),
|
contacts: this.contactsCollection.pluck('item'),
|
||||||
requestUris: this.requestUrisCollection.pluck('item'),
|
requestUris: this.requestUrisCollection.pluck('item'),
|
||||||
defaultAcrValues: this.defaultAcrValuesCollection.pluck('item'),
|
defaultACRvalues: this.defaultACRvaluesCollection.pluck('item'),
|
||||||
requestObjectSigningAlg: this.defaultToNull($('#requestObjectSigningAlg select').val()),
|
requestObjectSigningAlg: this.defaultToNull($('#requestObjectSigningAlg select').val()),
|
||||||
userInfoSignedResponseAlg: this.defaultToNull($('#userInfoSignedResponseAlg select').val()),
|
userInfoSignedResponseAlg: this.defaultToNull($('#userInfoSignedResponseAlg select').val()),
|
||||||
userInfoEncryptedResponseAlg: this.defaultToNull($('#userInfoEncryptedResponseAlg select').val()),
|
userInfoEncryptedResponseAlg: this.defaultToNull($('#userInfoEncryptedResponseAlg select').val()),
|
||||||
|
@ -1109,15 +1109,15 @@ var ClientFormView = Backbone.View.extend({
|
||||||
this.listWidgetViews.push(requestUriView);
|
this.listWidgetViews.push(requestUriView);
|
||||||
|
|
||||||
// build and bind default ACR values
|
// build and bind default ACR values
|
||||||
_.each(this.model.get('defaultAcrValues'), function (defaultAcrValue) {
|
_.each(this.model.get('defaultACRvalues'), function (defaultACRvalue) {
|
||||||
_self.defaultAcrValuesCollection.add(new Backbone.Model({item:defaultAcrValue}));
|
_self.defaultACRvaluesCollection.add(new Backbone.Model({item:defaultACRvalue}));
|
||||||
});
|
});
|
||||||
|
|
||||||
var defaultAcrView = new ListWidgetView({
|
var defaultAcrView = new ListWidgetView({
|
||||||
placeholder: $.t('client.client-form.acr-values-placeholder'),
|
placeholder: $.t('client.client-form.acr-values-placeholder'),
|
||||||
// TODO: autocomplete from spec
|
// TODO: autocomplete from spec
|
||||||
helpBlockText: $.t('client.client-form.acr-values-help'),
|
helpBlockText: $.t('client.client-form.acr-values-help'),
|
||||||
collection: this.defaultAcrValuesCollection});
|
collection: this.defaultACRvaluesCollection});
|
||||||
$('#defaultAcrValues .controls', this.el).html(defaultAcrView.render().el);
|
$('#defaultAcrValues .controls', this.el).html(defaultAcrView.render().el);
|
||||||
this.listWidgetViews.push(defaultAcrView);
|
this.listWidgetViews.push(defaultAcrView);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue