object consistency across commits

pull/708/merge
Justin Richer 2015-03-30 18:03:49 -04:00
parent 6e095e3266
commit 2a4cceff5a
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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) {