This is so the couchdb _changes feed can work correctly.
@@ -42,7 +42,8 @@ module.exports = [
to: "_view/docs_by_type",
method: "GET",
query: {
- key: [":type", ":id"],
+ startkey: [":type", ":id"],
+ endkey: [":type", ":id", {}],
include_docs: "true"
}
@@ -48,7 +48,7 @@
<div class="buttons">
<button class="save-button" tabindex="0">Save</button>
<button class="cancel-button plain" tabindex="0">Cancel</button>
- {{#if _id}}<div class="delete-button"><i class="icon-trash"></i></div>{{/if}}
+ {{#if id}}<div class="delete-button"><i class="icon-trash"></i></div>{{/if}}
</div>
<div class="top-spacer"></div>
@@ -36,7 +36,7 @@
@@ -53,7 +53,7 @@
@@ -24,7 +24,7 @@
@@ -32,7 +32,7 @@
@@ -44,7 +44,7 @@
@@ -102,7 +102,7 @@
@@ -54,7 +54,7 @@
@@ -52,7 +52,7 @@