object consistency across commits
parent
6e095e3266
commit
2a4cceff5a
|
@ -1118,7 +1118,7 @@ var AppRouter = Backbone.Router.extend({
|
|||
// set the URL for the collection
|
||||
claims.url = 'api/claims/' + rsid;
|
||||
|
||||
var view = new ClaimListView({model: claims});
|
||||
var view = new ClaimListView({model: claims, rs: rs});
|
||||
|
||||
view.load(function() {
|
||||
$('#content').html(view.render().el);
|
||||
|
|
|
@ -231,6 +231,11 @@ var ClaimListView = Backbone.View.extend({
|
|||
|
||||
this.model.sync('update', this.model, {
|
||||
success:function() {
|
||||
// update our copy of the resource set object (if we have it)
|
||||
if (_self.options.rs != null) {
|
||||
rs.set({claimsRequired: _self.model.toJSON()}, {trigger: false});
|
||||
}
|
||||
|
||||
app.navigate('user/policy', {trigger: true});
|
||||
},
|
||||
error:function (error, response) {
|
||||
|
|
Loading…
Reference in New Issue