Permalink
Browse files

Starred notes XXS

  • Loading branch information...
lealife committed Nov 29, 2017
1 parent 7e2b1d0 commit a2ed226637f8e66c9b089784b5e58eccf2e2fb30
Showing with 4 additions and 2 deletions.
  1. +4 −2 public/js/app/note.js
View
@@ -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
@@ -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);
}

0 comments on commit a2ed226

Please sign in to comment.