mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-29 08:27:55 +00:00
[file-comment]click area outside file-comment and hide it
This commit is contained in:
parent
83e430efdb
commit
d5d10c9405
@ -279,6 +279,12 @@ $('#comment').click(function() {
|
||||
$('#file-comment, #comment-caret').addClass('hide');
|
||||
}
|
||||
});
|
||||
$(document).click(function(e) {
|
||||
var target = e.target || event.srcElement;
|
||||
if (target != $('#comment')[0] && target != $('#file-comment')[0] && target != $('#comment-caret')[0] && !($('#file-comment, #comment-caret').find('*').is(target))) {
|
||||
$('#file-comment, #comment-caret').addClass('hide');
|
||||
}
|
||||
});
|
||||
|
||||
var comment_input_pre_text = $('#comment-input').val();
|
||||
$('#comment-input').css('color', '#999').click(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user