conflict ok

todo conflict copy attach
This commit is contained in:
life
2015-02-01 01:07:40 +08:00
parent 00aac7c96a
commit 647ca66fa5
5 changed files with 22 additions and 8 deletions

View File

@@ -894,6 +894,9 @@ Note._renderNotes = function(notes, forNewNote, isShared, tang) { // 第几趟
tmp = $(tmp);
tmp.find(".item-blog").hide();
}
if(note.ConflictNoteId) {
$(tmp).addClass('item-conflict');
}
Note.noteItemListO.append(tmp);
/*
@@ -1978,6 +1981,7 @@ Note.fixSyncConflict = function(note, newNote) {
}
// 当前这个换成新复制的
target.attr('noteId', newNote.NoteId);
target.addClass('item-conflict');
// 重新render 左侧下, 因为有冲突了, 不要render内容啊
// 如果当前编辑的是这个笔记, 那切换到newNote上来