Skip to content

Commit 5c60763

Browse files
varunkasyappjacobtylerwalls
authored andcommitted
Fixed #36723 -- Removed logic for repositioning FilteredSelectMultiple help text.
1 parent 35f86b6 commit 5c60763

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

django/contrib/admin/static/admin/js/SelectFilter2.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ Requires core.js and SelectBox.js.
1818
from_box.setAttribute('aria-labelledby', field_id + '_from_label');
1919
from_box.setAttribute('aria-describedby', `${field_id}_helptext ${field_id}_choose_helptext`);
2020

21-
for (const p of from_box.parentNode.getElementsByTagName('p')) {
22-
if (p.classList.contains("info")) {
23-
// Remove <p class="info">, because it just gets in the way.
24-
from_box.parentNode.removeChild(p);
25-
} else if (p.classList.contains("help")) {
26-
// Move help text up to the top so it isn't below the select
27-
// boxes or wrapped off on the side to the right of the add
28-
// button:
29-
from_box.parentNode.insertBefore(p, from_box.parentNode.firstChild);
30-
}
31-
}
32-
3321
// <div class="selector"> or <div class="selector stacked">
3422
const selector_div = quickElement('div', from_box.parentNode);
3523
// Make sure the selector div appears between the label and the add link.

0 commit comments

Comments
 (0)