Skip to content

Commit

Permalink
merge with upstream 1.0.37 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Sep 15, 2024
1 parent 28d8450 commit 2fa1f01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"description": "Adds comments on sidebar and link it to the text. For no-skin use ep_page_view.",
"name": "ep_comments_page",
"version": "1.0.36",
"version": "1.0.37",
"author": {
"name": "Nicolas Lescop",
"email": "[email protected]"
Expand Down
7 changes: 6 additions & 1 deletion static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,12 @@ EpComments.prototype.getCommentData = function () {

// Delete a pad comment
EpComments.prototype.deleteComment = function (commentId) {
$('iframe[name="ace_outer"]').contents().find(`#${commentId}`).remove();
while($('iframe[name="ace_outer"]').contents().find(`#${commentId}`).length > 0){
$('iframe[name="ace_outer"]').contents().find(`#${commentId}`).remove();
}
while($('iframe[name="ace_outer"]').contents().find(`#icon-${commentId}`).length > 0){
$('iframe[name="ace_outer"]').contents().find(`#icon-${commentId}`).remove();
}
};

const cloneLine = (line) => {
Expand Down

0 comments on commit 2fa1f01

Please sign in to comment.