Skip to content

Commit

Permalink
fix pencil icon not displayed. #24
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Sep 17, 2023
1 parent c682ebd commit 52677d4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions assets/javascripts/code_review.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
# Code Review plugin for Redmine
# Copyright (C) 2009-2017 Haruyuki Iida
# Copyright (C) 2009-2023 Haruyuki Iida
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -138,10 +138,8 @@ function setAddReviewButton(url, change_id, image_tag, is_readonly, is_diff, att
continue;
}

var th_html = th.innerHTML;

var line = th_html.match(/[0-9]+/);
if (line == null) {
var line = $(th).data('txt');
if (line == null || line == "") {
continue;
}

Expand All @@ -151,7 +149,7 @@ function setAddReviewButton(url, change_id, image_tag, is_readonly, is_diff, att
span_html += image_tag;
}
span_html += '</span>';
th.innerHTML = th_html + span_html;
th.innerHTML = span_html;

var img = th.getElementsByTagName('img')[0];
if (img != null) {
Expand Down

0 comments on commit 52677d4

Please sign in to comment.