You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ra...@apache.org on 2012/01/24 05:28:39 UTC

[2/2] git commit: Fixing COUCHDB-1383: update the in memory state of the view on save.

Fixing COUCHDB-1383: update the in memory state of the view on save.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/ea01eaaf
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/ea01eaaf
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/ea01eaaf

Branch: refs/heads/1.2.x
Commit: ea01eaafa15169e17afda2b059bf8be12f2f6472
Parents: 851e041
Author: Sam Bisbee <sa...@sbisbee.com>
Authored: Wed Jan 18 11:02:43 2012 -0500
Committer: Randall Leeds <ra...@apache.org>
Committed: Mon Jan 23 20:26:36 2012 -0800

----------------------------------------------------------------------
 share/www/script/futon.browse.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/ea01eaaf/share/www/script/futon.browse.js
----------------------------------------------------------------------
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js
index b24840e..6df0568 100644
--- a/share/www/script/futon.browse.js
+++ b/share/www/script/futon.browse.js
@@ -577,6 +577,7 @@
             db.saveDoc(doc, {
               success: function(resp) {
                 page.isDirty = false;
+                page.storedViewCode = viewDef;
                 $("#viewcode button.revert, #viewcode button.save")
                   .attr("disabled", "disabled");
               }