Changeset 31434
- Timestamp:
- 02/12/2015 05:20:40 AM (10 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-admin/js/common.js
r30918 r31434 172 172 173 173 $(document).ready( function() { 174 var checks, first, last, checked, sliced, mobileEvent, transitionTimeout, focusedRowActions, 174 var checks, first, last, checked, sliced, mobileEvent, transitionTimeout, focusedRowActions, $firstHeading, 175 175 lastClicked = false, 176 176 pageInput = $('input.current-page'), … … 369 369 } 370 370 371 // Move .updated and .error alert boxes. Don't move boxes designed to be inline. 372 $('div.wrap h2:first').nextAll('div.updated, div.error').addClass('below-h2'); 373 $('div.updated, div.error').not('.below-h2, .inline').insertAfter( $('div.wrap h2:first') ); 371 // Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline. 372 $firstHeading = $( 'div.wrap h2:first' ); 373 $firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' ); 374 $( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading ); 374 375 375 376 // Init screen meta
Note: See TracChangeset
for help on using the changeset viewer.