summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bisbee <sam@sbisbee.com>2012-01-18 11:02:43 -0500
committerRandall Leeds <randall@apache.org>2012-01-23 20:26:36 -0800
commitea01eaafa15169e17afda2b059bf8be12f2f6472 (patch)
treeec7c9d1667dd7695e8ae3155aef159da88b07007
parent851e041670b7881e7fa4556e6c36f15f49f269b1 (diff)
downloadcouchdb-ea01eaafa15169e17afda2b059bf8be12f2f6472.tar.gz
Fixing COUCHDB-1383: update the in memory state of the view on save.
-rw-r--r--share/www/script/futon.browse.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js
index b24840e68..6df056886 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");
}