From 5c60763561c67924eff1069e1516b60a59d068d5 Mon Sep 17 00:00:00 2001 From: Kasyap Pentamaraju Date: Tue, 11 Nov 2025 11:10:29 +0530 Subject: Fixed #36723 -- Removed logic for repositioning FilteredSelectMultiple help text. --- django/contrib/admin/static/admin/js/SelectFilter2.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/django/contrib/admin/static/admin/js/SelectFilter2.js b/django/contrib/admin/static/admin/js/SelectFilter2.js index fde59d3029..99efa1e0ca 100644 --- a/django/contrib/admin/static/admin/js/SelectFilter2.js +++ b/django/contrib/admin/static/admin/js/SelectFilter2.js @@ -18,18 +18,6 @@ Requires core.js and SelectBox.js. from_box.setAttribute('aria-labelledby', field_id + '_from_label'); from_box.setAttribute('aria-describedby', `${field_id}_helptext ${field_id}_choose_helptext`); - for (const p of from_box.parentNode.getElementsByTagName('p')) { - if (p.classList.contains("info")) { - // Remove

, because it just gets in the way. - from_box.parentNode.removeChild(p); - } else if (p.classList.contains("help")) { - // Move help text up to the top so it isn't below the select - // boxes or wrapped off on the side to the right of the add - // button: - from_box.parentNode.insertBefore(p, from_box.parentNode.firstChild); - } - } - //

or
const selector_div = quickElement('div', from_box.parentNode); // Make sure the selector div appears between the label and the add link. -- cgit v1.3