mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
Fix small comments bugs (#1832)
This commit is contained in:
parent
68937dd192
commit
da8d748c49
4 changed files with 8 additions and 3 deletions
|
@ -85,6 +85,7 @@ function initInlineEditing(title) {
|
|||
if (inputString.disabled) {
|
||||
saveAllEditFields();
|
||||
editBlock.dataset.editMode = 1;
|
||||
$editBlock.closest('.inline_scroll_block').scrollTop(editBlock.offsetTop);
|
||||
inputString.disabled = false;
|
||||
$inputString.removeClass('hidden');
|
||||
$editBlock.find('.view-mode').addClass('hidden');
|
||||
|
|
|
@ -76,6 +76,7 @@ var Comments = (function() {
|
|||
$el.find('#message').val('');
|
||||
$el.find('.new-comment-button').removeClass('show');
|
||||
newButton.disable = false;
|
||||
$el.find('textarea').focus().blur();
|
||||
})
|
||||
.error((error) => {
|
||||
errorField.html(error.responseJSON.errors.message);
|
||||
|
|
|
@ -239,13 +239,16 @@
|
|||
|
||||
.new-comment-button {
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
font-size: 14px;
|
||||
line-height: 18px;
|
||||
margin: 8px;
|
||||
margin: 4px;
|
||||
padding: 4px;
|
||||
position: absolute;
|
||||
right: -36px;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
transition: $md-transaction;
|
||||
width: 26px;
|
||||
|
||||
&.show {
|
||||
right: 0;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="comments-container" data-object-id = <%= object.id %>>
|
||||
<% per_page = Constants::COMMENTS_SEARCH_LIMIT %>
|
||||
<div class="content-comments">
|
||||
<div class="content-comments inline_scroll_block">
|
||||
<% if comments.size == per_page %>
|
||||
<div class="comment-more text-center">
|
||||
<a class="btn btn-default btn-more-comments-new"
|
||||
|
|
Loading…
Reference in a new issue