[wp-trac] [WordPress Trac] #14127: Dashboard feed widgets should open entries in new tabs

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 28 23:16:27 UTC 2010


#14127: Dashboard feed widgets should open entries in new tabs
-------------------------+--------------------------------------------------
 Reporter:  IndigoJo     |        Owner:            
     Type:  enhancement  |       Status:  closed    
 Priority:  normal       |    Milestone:            
Component:  General      |      Version:  3.0       
 Severity:  normal       |   Resolution:  worksforme
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by scribu):

 And here is said javascript:

 {{{
 jQuery(document).click(function(ev) {
         var url = jQuery(ev.target).attr('href'), undefined;

         if ( undefined == url )
                 return;

     if ( 0 != url.indexOf(location.protocol + '//' + location.host) ) {
                 window.open(url);
                 return false;
         }
 });
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14127#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list