Author: cmlenz
Date: Wed Jul 22 22:41:59 2009
New Revision: 796898
URL: http://svn.apache.org/viewvc?rev=796898&view=rev
Log:
Fix automatic group=true on reduce views in Futon, which was only getting
applied erratically depending on timing.
Modified:
couchdb/trunk/share/www/database.html
couchdb/trunk/share/www/script/futon.browse.js
Modified: couchdb/trunk/share/www/database.html
URL:
http://svn.apache.org/viewvc/couchdb/trunk/share/www/database.html?rev=796898&r1=796897&r2=796898&view=diff
==============================================================================
--- couchdb/trunk/share/www/database.html [utf-8] (original)
+++ couchdb/trunk/share/www/database.html [utf-8] Wed Jul 22 22:41:59 2009
@@ -78,9 +78,7 @@
page.populateViewsMenu();
page.populateViewEditor();
- if (!page.isTempView) {
- page.updateDocumentListing();
- } else {
+ if (page.isTempView) {
$("#viewcode").show().removeClass("collapsed").find("textarea")[0].focus();
$("#documents").hide();
}
Modified: couchdb/trunk/share/www/script/futon.browse.js
URL:
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=796898&r1=796897&r2=796898&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Wed Jul 22 22:41:59
2009
@@ -185,6 +185,7 @@
.bind("textInput", updateDirtyState);
}
$("#language").change(updateDirtyState);
+ page.updateDocumentListing();
});
$("#grouptruenotice").show();
} else if (viewName == "_temp_view") {
@@ -194,6 +195,8 @@
$.cookies.get(db.name + ".reduce", "")
);
$("#grouptruenotice").show();
+ } else {
+ page.updateDocumentListing();
}
page.populateLanguagesMenu();
if (this.isTempView) {