mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
on hover of link show options
This commit is contained in:
@@ -24,10 +24,11 @@ taskTemplate
|
||||
'blur .edit': 'close',
|
||||
'keyup .edit': 'handleKeyup',
|
||||
'keypress .edit': 'update',
|
||||
'mouseover .task-wrappper':'showOptions',
|
||||
'mouseout .task-wrappper':'hideOptions',
|
||||
'mouseover .link':'showOptions',
|
||||
'mouseout .link':'hideOptions',
|
||||
'click .complete':'markComplete',
|
||||
'click .uncomplete':'unmarkComlete'
|
||||
'click .uncomplete':'unmarkComlete',
|
||||
'click .note':'addNote'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
@@ -128,6 +129,10 @@ taskTemplate
|
||||
|
||||
unmarkComlete:function(){
|
||||
this.model.toggelCompletedStatus('N');
|
||||
},
|
||||
|
||||
addNote:function(){
|
||||
this.$el.find('.divNote').show();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user