conflict resolved ing

This commit is contained in:
life
2015-02-12 19:40:22 +08:00
parent 269f68620c
commit faeb923b2a
10 changed files with 211 additions and 9 deletions

View File

@@ -1646,6 +1646,11 @@ Note.star = function(noteId) {
});
};
// 显示
Note.showConflictInfo = function(noteId, e) {
ContextTips.show('#conflictTips', e);
};
// 内容已同步成功
Note.contentSynced = function(noteId, content) {
var me = this;
@@ -2106,7 +2111,7 @@ $(function() {
}
});
$("#noteItemList").on("click", ".item", function(event) {
event.stopPropagation();
// event.stopPropagation();
var noteId = $(this).attr("noteId");
// 手机端处理
@@ -2232,6 +2237,12 @@ $(function() {
Note.renderStarNote($li);
});
$("#noteItemList").on("click", ".item-my .item-conflict-info", function(e) {
var $li = $(this).closest('li');
var noteId = $li.attr('noteId');
Note.showConflictInfo(noteId, e);
});
// sync
Note._syncRefreshE.click(function() {
Note.sync();