Making WordPress.org

Changeset 7110


Ignore:
Timestamp:
04/15/2018 10:05:15 AM (6 years ago)
Author:
ocean90
Message:

Trac: Make Trac ticket buttons always visible instead of only on hover.

See #3526.

Location:
sites/trunk/wordpress.org/public_html/style/trac
Files:
2 edited

Legend:

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

    r7108 r7110  
    912912h3 .trac-ticket-buttons {
    913913    padding-top: 8px;
     914    visibility: visible !important;
    914915}
    915916h3.chat-bot .trac-ticket-buttons {
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r7090 r7110  
    172172                };
    173173            });
    174 
    175             // Restore the 'Delete' comment buttons, if any. The Trac plugin places them in a location we don't want.
    176             // See https://meta.trac.wordpress.org/changeset/204.
    177             $('div.change').children('.trac-ticket-buttons').each( function() {
    178                 var el = $(this),
    179                     trac_buttons = el.prev().children('.trac-ticket-buttons');
    180 
    181                 // Trac 1.2.2 already has a delete button here. TODO See r204 to check if buttons need removing from templates.
    182                 if ( trac_buttons.find('form input[name="action"][value="delete-comment"]').length ) {
    183                     console.log( "wp-trac: .trac-ticket-buttons delete-comment changes not needed on this trac." );
    184                     return;
    185                 }
    186 
    187                 el.children().appendTo( trac_buttons ).end().end().remove();
    188             });
    189174        },
    190175
Note: See TracChangeset for help on using the changeset viewer.