From 7c7df1b70f6375118748488f33c9181520a2b2b0 Mon Sep 17 00:00:00 2001 From: rstefko Date: Thu, 22 Jun 2023 09:26:19 +0200 Subject: [PATCH] fixes #24: Fixes pencil icon for new RM versions --- assets/javascripts/code_review.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/code_review.js b/assets/javascripts/code_review.js index 05305bd..77e4e3b 100644 --- a/assets/javascripts/code_review.js +++ b/assets/javascripts/code_review.js @@ -140,7 +140,7 @@ function setAddReviewButton(url, change_id, image_tag, is_readonly, is_diff, att var th_html = th.innerHTML; - var line = th_html.match(/[0-9]+/); + var line = th_html.match(/[0-9]+/) ?? th.getAttribute('data-txt'); if (line == null) { continue; }