|
@@ -24,7 +24,7 @@ Template.editor.helpers({
|
|
|
let $preview = $("#viewer_iframe");
|
|
|
// Send the current code over to the iframe for rendering.
|
|
|
$preview.contents().find("html").html(cmEditor.getValue());
|
|
|
- Meteor.call("addEditingUser");
|
|
|
+ Meteor.call("addEditingUser", Session.get("docid"));
|
|
|
});
|
|
|
};
|
|
|
}
|
|
@@ -33,7 +33,7 @@ Template.editor.helpers({
|
|
|
Template.editingUsers.helpers({
|
|
|
// Retrieve a list of users that are editing this document.
|
|
|
users: function () {
|
|
|
- let doc = Documents.findOne();
|
|
|
+ let doc = Documents.findOne({ _id: Session.get("docid") });
|
|
|
if (!doc) {
|
|
|
// Give up.
|
|
|
return null;
|