Add support of showing authorship in editor and adjust related styles

This commit is contained in:
Wu Cheng-Han 2016-07-30 11:28:24 +08:00
parent d5549c6a84
commit a14e7953b5
4 changed files with 218 additions and 3 deletions

View file

@ -65,7 +65,9 @@ function emitCheck(note) {
var out = {
updatetime: note.updatetime,
lastchangeuser: note.lastchangeuser,
lastchangeuserprofile: note.lastchangeuserprofile
lastchangeuserprofile: note.lastchangeuserprofile,
authors: note.authors,
authorship: note.authorship
};
realtime.io.to(note.id).emit('check', out);
}
@ -314,6 +316,8 @@ function emitRefresh(socket) {
ownerprofile: note.ownerprofile,
lastchangeuser: note.lastchangeuser,
lastchangeuserprofile: note.lastchangeuserprofile,
authors: note.authors,
authorship: note.authorship,
permission: note.permission,
createtime: note.createtime,
updatetime: note.updatetime