update attachments field selector for new redmine version (#48967)
This commit is contained in:
parent
606a5b40e1
commit
d30e032c3e
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue