THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

sub-comment: Hide add sub-comment button when to edit comment

tags/v1.11.0
Suwon Chae 1 year ago
parent
commit
d9ce496566
2 changed files with 5 additions and 1 deletions
  1. +1
    -0
      public/javascripts/common/yobi.Comment.js
  2. +4
    -1
      public/javascripts/common/yona.SubComment.js

+ 1
- 0
public/javascripts/common/yobi.Comment.js View File

@@ -59,6 +59,7 @@ yobi.Comment = (function(){
$('#comment-editform-' + commentId).toggle();
$('#comment-body-' + commentId).toggle();
$("[data-toggle='popover']").popover();
$(".add-a-comment").hide();
autosize.update($('textarea'));
}



+ 4
- 1
public/javascripts/common/yona.SubComment.js View File

@@ -29,7 +29,10 @@ $(function(){
});

$(".comment").on("mouseenter tab", function () {
$(this).find(".add-a-comment").fadeIn(300);
var $this = $(this);
if(!$this.find(".textarea-box > textarea").is(":visible")) {
$this.find(".add-a-comment").fadeIn(300);
}
}).on("mouseleave", function () {
$(this).find(".add-a-comment").fadeOut(300);
});


Loading…
Cancel
Save