Changeset 5909
- Timestamp:
- 09/11/2017 10:43:46 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r5907 r5909 193 193 } 194 194 195 // Change 'Comments' and 'Stars' columns to dashicons glyphs to save space 195 // Change 'Comments' and 'Stars' columns to dashicons glyphs to save space. 196 196 $('th a[href*="sort=Comments"]').html('<div class="dashicons dashicons-admin-comments"></div>'); 197 197 $('th a[href*="sort=Stars"]').html('<div class="dashicons dashicons-star-empty"></div>'); … … 289 289 } 290 290 291 // Add After the Deadline (only add it if it loaded) 291 // Add After the Deadline (only add it if it loaded). 292 292 if ( $.isFunction( $.fn.addProofreader ) ) { 293 293 $('textarea').addProofreader(); … … 297 297 } 298 298 299 // Add custom buttons to the formatting toolbar 299 // Add custom buttons to the formatting toolbar. 300 300 // http://trac.edgewall.org/browser/tags/trac-1.0.9/trac/htdocs/js/wikitoolbar.js 301 301 (function($) { … … 308 308 $wikitoolbar = $textarea.parents( 'div.trac-resizable' ).siblings( 'div.wikitoolbar' ); 309 309 310 // after = ID of an existing button 310 // after = ID of an existing button. 311 311 function addButton( id, title, after, fn ) { 312 312 var $button = $( '<a />', { 'href': '#', 'id': id, 'title': title, 'tabIndex': 400 } ); … … 357 357 })(jQuery); 358 358 359 // Force 'Attachments' and 'Modify Ticket' to be shown 359 // Force 'Attachments' and 'Modify Ticket' to be shown. 360 360 $('#attachments').removeClass('collapsed'); 361 361 $("#modify").parent().removeClass('collapsed'); 362 362 363 // Push live comment previews above 'Modify Ticket' 363 // Push live comment previews above 'Modify Ticket'. 364 364 $('#ticketchange').insertAfter('#trac-add-comment'); 365 365 366 // Toggle the security notice on component change, if rendered 366 // Toggle the security notice on component change, if rendered. 367 367 if ( $('#wp-security-notice').length ) { 368 368 $('#field-component').change( function() { … … 398 398 }); 399 399 400 // Clear the milestone on wontfix, duplicate, worksforme, invalid 400 // Clear the milestone on wontfix, duplicate, worksforme, invalid. 401 401 var milestone = $('#field-milestone'); 402 402 if ( ! milestone.prop('disabled') ) { … … 409 409 } 410 410 411 // Prevent marking a ticket as a duplicate of itself 411 // Prevent marking a ticket as a duplicate of itself. 412 412 $('#propertyform').submit( function() { 413 413 var action = $('input[name="action"]:checked').val(), … … 421 421 }); 422 422 423 // Add a 'Show only commits/attachments' view option to tickets 423 // Add a 'Show only commits/attachments' view option to tickets. 424 424 $('label[for="trac-comments-only-toggle"]').text('Show only comment text'); 425 425 $('form#prefs') … … 433 433 $('div.change') 434 434 .hide() 435 // Best we can do to target a 435 // Best we can do to target a. 436 436 .has('.comment > p > a.changeset') 437 437 .has('.comment div.message p a.ticket') … … 443 443 }); 444 444 445 // List commits between #ticket and #attachments 445 // List commits between #ticket and #attachments. 446 446 if ( $( '#content.ticket' ).length ) { 447 447 var $commitChanges = $( 'div.change' ).has( '.comment > p > a.changeset' ).has( '.comment div.message p a.ticket' ), … … 494 494 }); 495 495 496 // 'User Interface' preferences tab => 'Help Links' (and removes icons-only setting) 496 // 'User Interface' preferences tab => 'Help Links' (and removes icons-only setting). 497 497 var uitab = $('#tab_userinterface'); 498 498 if ( uitab.length ) {
Note: See TracChangeset
for help on using the changeset viewer.