Skip to content

Commit

Permalink
csv editor should mark file 'dirty' when col/row is created/removed
Browse files Browse the repository at this point in the history
  • Loading branch information
timwis committed May 7, 2016
1 parent 31aacd8 commit 65d7b85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ module.exports = Backbone.View.extend({
undo: true,
afterChange: function(changes, source) {
if (source !== 'loadData') self.makeDirty();
}
},
afterRemoveCol: this.makeDirty,
afterRemoveRow: this.makeDirty,
afterCreateCol: this.makeDirty,
afterCreateRow: this.makeDirty
})

this.editor.getValue = function() {
Expand Down

0 comments on commit 65d7b85

Please sign in to comment.