Making WordPress.org

Changeset 11538


Ignore:
Timestamp:
02/10/2022 02:10:23 AM (3 years ago)
Author:
dd32
Message:

Trac: Allow opening the Tickets popover in a new tab/window/etc.

See #6093.

Location:
sites/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r11537 r11538  
    55
    66<?python
    7     scripts_version = '158'
     7    scripts_version = '159'
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/'
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r11537 r11538  
    707707            popup.appendTo( '#main' );
    708708            $( '.open-ticket-report' ).click( function( event ) {
     709                // Allow opening the report on make.
     710                if ( event.metaKey || event.ctrlKey || event.shiftKey ) {
     711                    return;
     712                }
     713
    709714                if ( popup.children().length === 0 ) {
    710715                    $.ajax({
Note: See TracChangeset for help on using the changeset viewer.