ep_comments_page 11.0.23 → 11.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "Adds comments on sidebar and link it to the text. For no-skin use ep_page_view.",
3
3
  "name": "ep_comments_page",
4
- "version": "11.0.23",
4
+ "version": "11.0.24",
5
5
  "author": {
6
6
  "name": "Nicolas Lescop",
7
7
  "email": "limplementeur@gmail.com"
@@ -481,6 +481,12 @@ EpComments.prototype.collectComments = function (callback) {
481
481
  });
482
482
 
483
483
  this.padInner.contents().on('click', '.comment', function (e) {
484
+ // When comments are displayed as gutter icons, the user opens the
485
+ // comment by clicking the icon — the inline `.comment` span should
486
+ // behave like ordinary prose, so links inside a comment remain
487
+ // clickable. Previously the click handler popped up a modal
488
+ // intercepting the link click (#90).
489
+ if (clientVars.displayCommentAsIcon) return;
484
490
  const commentId = self.commentIdOf(e);
485
491
  commentBoxes.highlightComment(commentId, e, $(this));
486
492
  });