Fixed comment form enter event

This commit is contained in:
Andy Strobel 2014-07-23 19:43:43 +02:00
parent e805f1a382
commit 6e95a92236

View File

@ -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;