Document editor needs to clear model before setting the values to remove any prev attributes.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/7007dac0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/7007dac0 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/7007dac0 Branch: refs/heads/1960-paginate-all_dbs Commit: 7007dac0849e9678ee20139bde64d71fdd8e993e Parents: 843cc50 Author: suelockwood <[email protected]> Authored: Fri Jan 3 10:14:49 2014 -0500 Committer: suelockwood <[email protected]> Committed: Fri Jan 3 10:14:49 2014 -0500 ---------------------------------------------------------------------- src/fauxton/app/modules/documents/views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/7007dac0/src/fauxton/app/modules/documents/views.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js index 8f0a878..e155435 100644 --- a/src/fauxton/app/modules/documents/views.js +++ b/src/fauxton/app/modules/documents/views.js @@ -874,7 +874,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum json = JSON.parse(this.editor.getValue()); - this.model.set(json, {validate: true}); + this.model.clear().set(json, {validate: true}); if (this.model.validationError) { return false; }
