|
@@ -53,6 +53,12 @@ if (Meteor.isClient) {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ Template.navbar.helpers({
|
|
|
+ documents: function () {
|
|
|
+ return Documents.find();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
Template.navbar.events({
|
|
|
"click .js-add-doc": function (event) {
|
|
|
event.preventDefault();
|
|
@@ -68,6 +74,11 @@ if (Meteor.isClient) {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ "click .js-load-doc": function (event) {
|
|
|
+ // This contains a complete document.
|
|
|
+ Session.set("docid", this._id);
|
|
|
}
|
|
|
});
|
|
|
} // end isClient...
|