on hover of link show options

This commit is contained in:
floydpraveen
2013-08-23 19:34:27 +05:30
parent 3f946b2db1
commit 8c66346a9f
2 changed files with 22 additions and 12 deletions
+8 -3
View File
@@ -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();
}
});