diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-07-22 22:41:59 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-07-22 22:41:59 +0000 |
commit | 55b468f893580d71caac8bd73075807ca72a1bed (patch) | |
tree | 548ac077cf7a7f92d13080487e5dc17571e7a9de | |
parent | 72edcd3eb9152d0dbf1bd7d8eac5f42cff95ed44 (diff) |
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
-rw-r--r-- | share/www/database.html | 4 | ||||
-rw-r--r-- | share/www/script/futon.browse.js | 3 |
2 files changed, 4 insertions, 3 deletions
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) { |