summaryrefslogtreecommitdiff
path: root/django/contrib/admin
diff options
context:
space:
mode:
authorKasyap Pentamaraju <vpentamaraju@webmd.net>2025-11-11 11:10:29 +0530
committerJacob Walls <jacobtylerwalls@gmail.com>2025-11-14 09:26:05 -0500
commit5c60763561c67924eff1069e1516b60a59d068d5 (patch)
tree5c6dc50ebbb9e6f8eb2820dab1e29c278f17f2aa /django/contrib/admin
parent35f86b641a4eb26fa2b7c3842b6d374834a4ea6b (diff)
Fixed #36723 -- Removed logic for repositioning FilteredSelectMultiple help text.
Diffstat (limited to 'django/contrib/admin')
-rw-r--r--django/contrib/admin/static/admin/js/SelectFilter2.js12
1 files changed, 0 insertions, 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 <p class="info">, 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);
- }
- }
-
// <div class="selector"> or <div class="selector stacked">
const selector_div = quickElement('div', from_box.parentNode);
// Make sure the selector div appears between the label and the add link.