From 44fe2926a0da73882bae6f8080abe17501cb44d1 Mon Sep 17 00:00:00 2001 From: life Date: Sat, 21 Feb 2015 23:14:32 +0800 Subject: [PATCH] =?UTF-8?q?sync=E8=BF=87=E6=9D=A5=E7=9A=84content=E6=B2=A1?= =?UTF-8?q?=E6=9C=89desc,=20=E5=9C=A8render=E6=97=B6=E5=B0=B1=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/app/note.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/js/app/note.js b/public/js/app/note.js index f316ebc2..94d989fc 100644 --- a/public/js/app/note.js +++ b/public/js/app/note.js @@ -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);