Skip to content

Commit

Permalink
Starred notes XXS
Browse files Browse the repository at this point in the history
  • Loading branch information
lealife committed Nov 29, 2017
1 parent 7e2b1d0 commit a2ed226
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/js/app/note.js
Expand Up @@ -956,8 +956,10 @@ Note.renderNote = function(note) {
if (!note) {
return;
}
var title = note.Title || '';
title = title.replace(/&lt;/g, '<').replace(/&gt;/g, '>');
// title
$("#noteTitle").val(note.Title);
$("#noteTitle").val(title);

// 当前正在编辑的
// tags
Expand Down Expand Up @@ -1997,7 +1999,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 || getMsg('Untitled'));
var t = tt(me.starItemT, note.NoteId, trimTitle(note.Title) || getMsg('Untitled'));
me.starNotesO.append(t);
}

Expand Down

0 comments on commit a2ed226

Please sign in to comment.