How to use ep_comments_page - 5 common examples

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);
  }
}
github ether / ep_comments / static / js / commentIcons.js View on Github external
}).on("click", ".comment-icon.inactive", function(e){
    // deactivate/hide other comment boxes that are opened, so we have only
    // one comment box opened at a time
    commentBoxes.hideOpenedComments();
    var allActiveIcons = getPadOuter().find('#commentIcons').find(".comment-icon.active");
    toggleActiveCommentIcon(allActiveIcons);

    // activate/show only target comment
    toggleActiveCommentIcon($(this));
    var commentId = targetCommentIdOf(e);
    commentBoxes.showComment(commentId, e, true);
  });
}
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);
  }
}
github ether / ep_comments / static / js / commentIcons.js View on Github external
}).on("click", ".comment-icon.inactive", function(e){
    // deactivate/hide other comment boxes that are opened, so we have only
    // one comment box opened at a time
    commentBoxes.hideOpenedComments();
    var allActiveIcons = getPadOuter().find('#commentIcons').find(".comment-icon.active");
    toggleActiveCommentIcon(allActiveIcons);

    // activate/show only target comment
    toggleActiveCommentIcon($(this));
    var commentId = targetCommentIdOf(e);
    commentBoxes.showComment(commentId, e, true);
  });
}
github ether / ep_comments / static / js / newComment.js View on Github external
var localizeNewCommentForm = function() {
  var newCommentForm = getNewCommentContainer().find('#newComment');
  if (newCommentForm.length !== 0) commentL10n.localize(newCommentForm);
};

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 24 days ago

Package Health Score

74 / 100
Full package analysis

Similar packages