Created
February 12, 2009 14:39
-
-
Save kiko/62646 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/app-template/_attachments/index.html | |
+++ b/app-template/_attachments/index.html | |
@@ -16,7 +16,7 @@ | |
var dbname = document.location.href.split('/')[3]; | |
var design = unescape(document.location.href).split('/')[5]; | |
var DB = $.couch.db(dbname); | |
- DB.view(design+"/example",{success: function(json) { | |
+ DB.view(design+"/example",{group: true, success: function(json) { | |
$("#view").html(json.rows.map(function(row) { | |
return '<li>'+row.key+'</li>'; | |
}).join('')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment