lib/thoth/public/js/admin/comments.js
/**
   * Handles clicks within the comments div. Uses delegation to determine what
   * action to take, if any.
   *
   * @method handleCommentClick
   * @param {Event} e event object
   * @private
   */
Handles clicks within the comments div. Uses delegation to determine what
action to take, if any.

@method handleCommentClick
@param {Event} e event object
@private
Handles clicks within the comments div . Uses delegation to determine what action to take if any . @method handleCommentClick @param { Event } e event object @private
function handleCommentClick(e) {
    var el = yue.getTarget(e),
        commentEl;
    if (yud.hasClass(el, 'comment-delete') &&
        (commentEl = yud.getAncestorByClassName(el, 'comment'))) {
      yue.preventDefault(e);
      deleteComment(commentEl.id.split('-')[1], e.shiftKey || e.metaKey);
    }
  }
function handleCommentClick ( e ) { var el = yue . getTarget ( e ) , commentEl ; if ( yud . hasClass ( el , 'comment-delete' ) && ( commentEl = yud . getAncestorByClassName ( el , 'comment' ) ) ) { yue . preventDefault ( e ) ; deleteComment ( commentEl . id . split ( '-' ) [ 1 ] , e . shiftKey || e . metaKey ) ; } }
Handles clicks within the comments div.
Handles clicks within the comments div .