File tree Expand file tree Collapse file tree
django/contrib/admin/static/admin/js Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments