ep_comments_page
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"description": "Adds comments on sidebar and link it to the text. Support for Page View, requires ep_page_view", | ||
"description": "Adds comments on sidebar and link it to the text. For no-skin use ep_page_view.", | ||
"name": "ep_comments_page", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Nicolas Lescop", |
@@ -78,2 +78,3 @@ // Easier access to outter pad | ||
if (editorComment) { | ||
targetLeft += padInner.offset().left; | ||
targetTop += parseInt(padInner.css('padding-top').split('px')[0]) | ||
@@ -80,0 +81,0 @@ targetTop += parseInt(padOuter.find('#outerdocbody').css('padding-top').split('px')[0]) |
@@ -549,2 +549,3 @@ /* TODO: | ||
var commentId = reply.commentId; | ||
if (commentId) { | ||
// tell comment icon that this comment has 1+ replies | ||
@@ -566,2 +567,3 @@ commentIcons.commentHasReply(commentId); | ||
repliesContainer.append(content); | ||
} | ||
}); | ||
@@ -1208,2 +1210,3 @@ }; | ||
aceEditEvent: function(hook, context){ | ||
if(!pad.plugins) pad.plugins = {}; | ||
// first check if some text is being marked/unmarked to add comment to it | ||
@@ -1210,0 +1213,0 @@ var eventType = context.callstack.editEvent.eventType; |
266938
6035