Changeset 1074
- Timestamp:
- 12/29/2014 05:44:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r1073 r1074 101 101 $('th a[href*="sort=Stars"]').html('<div class="dashicons dashicons-star-empty"></div>'); 102 102 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. 103 115 if ( content.hasClass( 'ticket' ) ) { 104 116 if ( $(document.body).hasClass( 'core' ) ) { 105 117 wpTrac.coreToMeta(); 106 118 } 107 108 // Link username in header109 (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);118 119 119 120 // A collection of ticket hacks that must be run again after previews.
Note: See TracChangeset
for help on using the changeset viewer.