mirror of
https://github.com/django/django.git
synced 2025-11-17 18:48:15 +00:00
Fixed #36723 -- Removed logic for repositioning FilteredSelectMultiple help text.
Some checks failed
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
Tests / Windows, SQLite, Python 3.14 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
Some checks failed
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Docs / lint-docs (push) Has been cancelled
Tests / Windows, SQLite, Python 3.14 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
This commit is contained in:
parent
35f86b641a
commit
5c60763561
1 changed files with 0 additions and 12 deletions
|
|
@ -18,18 +18,6 @@ Requires core.js and SelectBox.js.
|
||||||
from_box.setAttribute('aria-labelledby', field_id + '_from_label');
|
from_box.setAttribute('aria-labelledby', field_id + '_from_label');
|
||||||
from_box.setAttribute('aria-describedby', `${field_id}_helptext ${field_id}_choose_helptext`);
|
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">
|
// <div class="selector"> or <div class="selector stacked">
|
||||||
const selector_div = quickElement('div', from_box.parentNode);
|
const selector_div = quickElement('div', from_box.parentNode);
|
||||||
// Make sure the selector div appears between the label and the add link.
|
// Make sure the selector div appears between the label and the add link.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue