1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

accessibility improvement; bugfix & clean up

This commit is contained in:
llj
2016-04-29 16:47:04 +08:00
parent ef980da1ec
commit f466979760
18 changed files with 96 additions and 109 deletions

View File

@@ -17,6 +17,7 @@ define([
events: {
'mouseenter': 'highlight',
'mouseleave': 'rmHighlight',
'focus *': 'focusItem',
'click .js-del-msg': 'delMessage',
'click .js-reply-msg': 'reply'
},
@@ -67,8 +68,17 @@ define([
this.$('.msg-ops').addClass('vh');
},
focusItem: function() {
$('.msg.hl', this.$el.parent())
.removeClass('hl')
.find('.msg-ops').addClass('vh');
this.highlight();
},
reply: function() {
this.parentView.replyTo(this.model.get("user_name"));
return false;
},
delMessage: function() {
@@ -86,6 +96,7 @@ define([
Common.feedback(err, 'error');
}
});
return false;
}
});