From 0ba0cca725aef50dec34462b5863ef327206eb37 Mon Sep 17 00:00:00 2001 From: life Date: Sun, 1 Mar 2015 23:28:35 +0800 Subject: [PATCH] star note' title 'Untitled' --- public/js/app/note.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/app/note.js b/public/js/app/note.js index 15612cbe..11f0e1d9 100644 --- a/public/js/app/note.js +++ b/public/js/app/note.js @@ -1647,7 +1647,7 @@ Note.renderStars = function(notes) { me.starNotesO.html(''); for(var i = 0; i < notes.length; ++i) { var note = notes[i]; - var t = tt(me.starItemT, note.NoteId, note.Title); + var t = tt(me.starItemT, note.NoteId, note.Title || 'Untitled'); me.starNotesO.append(t); } }; @@ -1685,7 +1685,7 @@ Note.changeStarNoteTitle = function(note) { return; } var target = me.starNotesO.find('li[data-id="' + note.NoteId + '"]'); - target.find('a').html(note.Title + 'X'); + target.find('a').html((note.Title || 'Untitled') + 'X'); }; // 取消star, note delete/trash时取消star