Skip to content

Commit

Permalink
Fix for localstorage.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoluteur committed Feb 1, 2016
1 parent 2d2db4b commit e185a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/view-action/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ return Backbone.View.extend({
var updatedModel = this.getData(true);
this.model.set(updatedModel);
this.model.save(this.model.changedAttributes(), {
patch: !this.model.isNew(),
patch: !this.model.isNew() && !Evol.Config.localStorage,
success: function(m){
fnSuccess(m);
that.collection.set(m, {remove:false});
Expand Down

0 comments on commit e185a1a

Please sign in to comment.