diff --git a/app.js b/app.js
index c5ef4bfe..b41e88b3 100644
--- a/app.js
+++ b/app.js
@@ -22,7 +22,7 @@ ddoc.views = {
*/
all: {
map: function(doc) {
- emit(doc.id, doc);
+ emit(doc._id, doc);
}
},
headers: {
diff --git a/attachments/pages/index.html b/attachments/pages/index.html
index 5bfeb479..0bea4252 100644
--- a/attachments/pages/index.html
+++ b/attachments/pages/index.html
@@ -69,7 +69,6 @@
-
@@ -86,20 +85,20 @@
rows
-
diff --git a/attachments/script/removalist.js b/attachments/script/removalist.js
index 66101c88..64ba63c5 100644
--- a/attachments/script/removalist.js
+++ b/attachments/script/removalist.js
@@ -38,8 +38,7 @@ var removalist = function() {
if ( id ) {
$.extend( query, {
- "startkey_docid": id,
- "skip": 1
+ "startkey": '"' + id + '"'
})
}
diff --git a/attachments/script/site.js b/attachments/script/site.js
index 7c2c0b97..8b1e1f5d 100644
--- a/attachments/script/site.js
+++ b/attachments/script/site.js
@@ -34,6 +34,11 @@ app.after = {
$(e.target).addClass('selected');
removalist.fetchRows(app.newest);
});
+ $( '.viewpanel-paging a' ).click(function( e ) {
+ // var action = $(e.target).attr('id').split('paging-')[1];
+ removalist.fetchRows(app.oldest);
+ });
+
}
}