~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

Viewing changes to wp-admin/js/common.js

  • Committer: Jacek Nykis
  • Date: 2015-02-25 10:22:01 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: jacek.nykis@canonical.com-20150225102201-0e3hyo5sq13n6h2t
New upstream version 4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
});
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'),
177
177
                currentPage = pageInput.val(),
368
368
                });
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
376
377
        screenMeta.init();