Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
show group=true notice only when view results are shown
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755205 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
janl committed Mar 17, 2009
1 parent 6f7c488 commit 99f02087fdfdbbb3167f1f86ccc3ccf1bb1bacf5
Showing 3 changed files with 5 additions and 2 deletions.
@@ -192,8 +192,8 @@ <h1>
</tr>
</tbody>
</table>
<p>
Views with a reduce function will return a single row of reduced values.
<p id="grouptruenotice">
<strong>Note</strong>: Views with a reduce function will return a single row of reduced values.
If you are looking for the same results that you can see here in Futon,
add a <code>?group=true</code> parameter to your view query. Futon does
this automatically.
@@ -199,12 +199,14 @@
}
$("#language").change(updateDirtyState);
});
$("#grouptruenotice").show();
} else if (viewName == "_temp_view") {
page.viewLanguage = $.cookies.get(db.name + ".language", page.viewLanguage);
page.updateViewEditor(
$.cookies.get(db.name + ".map", templates[page.viewLanguage]),
$.cookies.get(db.name + ".reduce", "")
);
$("#grouptruenotice").show();
}
page.populateLanguagesMenu();
if (this.isTempView) {
@@ -333,6 +333,7 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
#viewcode.collapsed table, #viewcode.collapsed .bottom { display: none; }

#tempwarn { display: none; font-size: 90%; margin: 0 2em 1.5em; }
#grouptruenotice { display: none; font-size: 90%; margin: 1ex 2em 1.5em; }

/* Database table */

0 comments on commit 99f0208

Please sign in to comment.