sync过来的content没有desc, 在render时就生成

This commit is contained in:
life
2015-02-21 23:14:32 +08:00
parent 0beb6f531b
commit 44fe2926a0

View File

@@ -905,6 +905,11 @@ Note._renderNotes = function(notes, forNewNote, isShared, tang) { // 第几趟
classes += " item-active";
}
var note = notes[i];
if(!note.Desc && note.Content) {
note.Desc = Note.genDesc(note.Content);
}
var tmp;
if(note.ImgSrc) {
tmp = tt(Note.itemTpl, classes, note.NoteId, note.ImgSrc, note.Title, Notebook.getNotebookTitle(note.NotebookId), goNowToDatetime(note.UpdatedTime), note.Desc);