How to use the ep_comments_page/static/js/commentBoxes.shouldNotCloseComment function in ep_comments_page

To help you get started, we’ve selected a few ep_comments_page examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ether / ep_comments / static / js / commentIcons.js View on Github external
var closeOpenedCommentIfNotOnSelectedElements = function(e) {
  // Don't do anything if clicked on the following elements:
  if (shouldNotCloseComment(e) // any of the comment icons
    || commentBoxes.shouldNotCloseComment(e)) { // a comment box or the comment modal
    return;
  }

  // All clear, can close the comment
  var openedComment = findOpenedComment();
  if (openedComment) {
    toggleActiveCommentIcon($(openedComment));

    var commentId = openedComment.getAttribute("data-commentid");
    commentBoxes.hideComment(commentId, true);
  }
}

ep_comments_page

Adds comments on sidebar and link it to the text. For no-skin use ep_page_view.

Apache-2.0
Latest version published 10 days ago

Package Health Score

72 / 100
Full package analysis

Similar packages