update attachments field selector for new redmine version (#48967)

This commit is contained in:
Frédéric Péters 2020-11-30 13:13:49 +01:00
parent 606a5b40e1
commit d30e032c3e
1 changed files with 2 additions and 2 deletions

View File

@ -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() {