markdown preview abstract 上传 [ok]

This commit is contained in:
life
2015-03-01 22:01:11 +08:00
parent bd1d066236
commit cd47a246b3
2 changed files with 7 additions and 1 deletions

6
node_modules/api.js generated vendored
View File

@@ -557,6 +557,12 @@ var Api = {
FileDatas: note.FileDatas,
tags: note.Tags, // 新添加
}
// 如果是markdown笔记, 则摘要也要传过去
if(note.IsMarkdown) {
data.Abstract = note.Abstract;
}
console.log('update note :');
console.log(data);

View File

@@ -2390,7 +2390,7 @@ Note.fixSyncConflict = function(note, newNote) {
if(target.length > 0) {
var newHtmlObject = Note._getNoteHtmlObjct(note);
if(newHtmlObject) {
newHtmlObject.insertBefore(target);
$(newHtmlObject).insertBefore(target);
}
}
// 当前这个换成新复制的