restore ticket modules after info update (#78091)
gitea/scrutiny/pipeline/head There was a failure building this commit Details

This commit is contained in:
Lauréline Guérin 2023-06-01 15:59:47 +02:00 committed by Lauréline Guérin
parent 6918349424
commit 7327bbbd05
1 changed files with 4 additions and 1 deletions

View File

@ -68,7 +68,10 @@
});
$(document).on('gadjo:dialog-done', function(ev, data) {
var $target = $(ev.target);
$target.parents('tr').replaceWith(data.content);
var $modules = $target.parents('tr').find('td').last();
var $html = $(data.content)
$html.find('td').last().replaceWith($modules);
$target.parents('tr').replaceWith($html);
});
});
</script>