Making WordPress.org

Changeset 1074


Ignore:
Timestamp:
12/29/2014 05:44:23 PM (12 years ago)
Author:
nacin
Message:

Trac: Move [1073] outside of the ticket if block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r1073 r1074  
    101101                        $('th a[href*="sort=Stars"]').html('<div class="dashicons dashicons-star-empty"></div>');
    102102
     103                        // Link username in header.
     104                        (function($) {
     105                                var el = $('#metanav').find('.first'),
     106                                        username;
     107                                username = el.text();
     108                                if ( 0 === username.indexOf( 'logged in as' ) ) {
     109                                        username = username.replace( 'logged in as ', '' );
     110                                        el.html( $('<a />', { href: 'https://profiles.wordpress.org/' + username }).text( username ) ).prepend( 'logged in as ');
     111                                }
     112                        })(jQuery);
     113
     114                        // Ticket-only tweaks.
    103115                        if ( content.hasClass( 'ticket' ) ) {
    104116                                if ( $(document.body).hasClass( 'core' ) ) {
    105117                                        wpTrac.coreToMeta();
    106118                                }
    107 
    108                                 // Link username in header
    109                                 (function($) {
    110                                         var el = $('#metanav').find('.first'),
    111                                                 username;
    112                                         username = el.text();
    113                                         if ( 0 === username.indexOf( 'logged in as' ) ) {
    114                                                 username = username.replace( 'logged in as ', '' );
    115                                                 el.html( $('<a />', { href: 'https://profiles.wordpress.org/' + username }).text( username ) ).prepend( 'logged in as ');
    116                                         }
    117                                 })(jQuery);
    118119
    119120                                // A collection of ticket hacks that must be run again after previews.
Note: See TracChangeset for help on using the changeset viewer.