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 +1 -1
- package/static/js/index.js +6 -0
package/package.json
CHANGED
package/static/js/index.js
CHANGED
|
@@ -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
|
});
|