mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fixed comment form enter event
This commit is contained in:
parent
e805f1a382
commit
6e95a92236
@ -25,13 +25,12 @@
|
||||
|
||||
$('#comments_area_" . $id . "').html(html);
|
||||
$('#newCommentForm_" . $id . "').val('').trigger('autosize.resize');
|
||||
$.fn.mention.reset('#newCommentForm_" . $id . "');
|
||||
|
||||
}",
|
||||
), array(
|
||||
'id' => "comment_create_post_" . $id,
|
||||
'class' => 'btn btn-small btn-primary',
|
||||
'style' => 'position: absolute; top: -3000px; left: -3000px;',
|
||||
'style' => 'display: none;',
|
||||
)
|
||||
);
|
||||
?>
|
||||
@ -48,11 +47,11 @@
|
||||
|
||||
event.cancelBubble = true;
|
||||
event.returnValue = false;
|
||||
event.preventDefault();
|
||||
|
||||
$('#comment_create_post_<?php echo $id; ?>').focus();
|
||||
$('#comment_create_post_<?php echo $id; ?>').click();
|
||||
|
||||
|
||||
}
|
||||
|
||||
return event.returnValue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user