WordPress.org

Making WordPress.org

Changeset 269


Ignore:
Timestamp:
01/10/2014 10:03:50 PM (6 years ago)
Author:
nacin
Message:

Trac: Prevent links inside a ticket or comment preview from opening in the same window. fixes #274.

File:
1 edited

Legend:

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

    r263 r269  
    128128            }
    129129
     130            // Prevent links inside a ticket or comment preview from opening in the same window.
     131            $( '.ticketdraft' ).on( 'click', 'a', function() {
     132                window.open( $( this ).attr( 'href' ) );
     133                return false;
     134            });
     135
    130136            // Allow action text inputs to be clicked directly.
    131137            $('#action')
Note: See TracChangeset for help on using the changeset viewer.