From d30e032c3ed604e6bfb2a362eeb89d14e14f92bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 30 Nov 2020 13:13:49 +0100 Subject: [PATCH] update attachments field selector for new redmine version (#48967) --- javascripts/theme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascripts/theme.js b/javascripts/theme.js index 29cb5da..a6347b0 100644 --- a/javascripts/theme.js +++ b/javascripts/theme.js @@ -129,7 +129,7 @@ function alter_new_issue_page() { } function alter_issue_show_page() { - if ($('#attachments_fields').length) { + if ($('.attachments_fields').length) { var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { $('input.filename.readonly').each(function(idx, elem) { @@ -150,7 +150,7 @@ function alter_issue_show_page() { }); }); }); - var target = $('#attachments_fields')[0]; + var target = $('.attachments_fields')[0]; observer.observe(target, {attributes: false, childList: true, characterData: false}); } $('textarea#issue_notes').on('keyup change', function() {