Fix error message not appearing on reviewer actions with invalid form (#20880)
The actions are no longer wrapped in a <li> following Django 4.2 upgrade.
This commit is contained in:
Родитель
5cd4a5ca10
Коммит
445458fe84
|
@ -97,7 +97,7 @@ function initReviewActions() {
|
|||
|
||||
var review_checked = $('#review-actions [name=action]:checked');
|
||||
if (review_checked.length > 0) {
|
||||
showForm(review_checked.closest('li'), true);
|
||||
showForm(review_checked.parentsUntil('#id_action', 'div'), true);
|
||||
}
|
||||
|
||||
/* Review action reason stuff */
|
||||
|
|
Загрузка…
Ссылка в новой задаче