diff options
author | Russell Branca <chewbranca@gmail.com> | 2013-03-13 15:15:02 -0700 |
---|---|---|
committer | Russell Branca <chewbranca@gmail.com> | 2013-03-15 14:37:34 -0700 |
commit | a719669108fee604b55cfdf01e0d278a5ad63ca9 (patch) | |
tree | d889eccd89130cb596b47c6d450cb29e6412f022 | |
parent | a471629f9481598c63400a11350fe91b6b1811c1 (diff) | |
download | couchdb-a719669108fee604b55cfdf01e0d278a5ad63ca9.tar.gz |
Fix code editor to save deleted fields
-rw-r--r-- | src/fauxton/app/modules/documents/views.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js index 9b4bb7181..6f370cc73 100644 --- a/src/fauxton/app/modules/documents/views.js +++ b/src/fauxton/app/modules/documents/views.js @@ -537,6 +537,7 @@ function(app, FauxtonAPI, Codemirror, JSHint) { var json, notification; if (this.hasValidCode()) { json = JSON.parse(this.editor.getValue()); + this.model.clear({silent:true}); this.model.set(json); notification = FauxtonAPI.addNotification({msg: "Saving document."}); this.model.save().error(function(xhr) { |