From 55b468f893580d71caac8bd73075807ca72a1bed Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Wed, 22 Jul 2009 22:41:59 +0000 Subject: Fix automatic group=true on reduce views in Futon, which was only getting applied erratically depending on timing. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796898 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/database.html | 4 +--- share/www/script/futon.browse.js | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/www/database.html b/share/www/database.html index 9b22cf76..4d07abca 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -78,9 +78,7 @@ specific language governing permissions and limitations under the License. page.populateViewsMenu(); page.populateViewEditor(); - if (!page.isTempView) { - page.updateDocumentListing(); - } else { + if (page.isTempView) { $("#viewcode").show().removeClass("collapsed").find("textarea")[0].focus(); $("#documents").hide(); } diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 6c7c6719..29c0d86a 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -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) { -- cgit v1.2.3