Index: trunk/phase3/resources/jquery/jquery.tablesorter.js |
— | — | @@ -585,8 +585,13 @@ |
586 | 586 | cacheRegexs(); |
587 | 587 | |
588 | 588 | // Apply event handling to headers |
589 | | - // this is to big, perhaps break it out? |
| 589 | + // this is too big, perhaps break it out? |
590 | 590 | $headers.click( function( e ) { |
| 591 | + if ( e.target.nodeName.toLowerCase() == 'a' ) { |
| 592 | + // The user clicked on a link inside a table header |
| 593 | + // Do nothing and let the default link click action continue |
| 594 | + return true; |
| 595 | + } |
591 | 596 | |
592 | 597 | if ( firstTime ) { |
593 | 598 | firstTime = false; |
— | — | @@ -668,12 +673,7 @@ |
669 | 674 | }; |
670 | 675 | return false; |
671 | 676 | } |
672 | | - } ) |
673 | | - // Allow links in headers to be clicked |
674 | | - .find( 'a' ).click( function( e ) { |
675 | | - e.stopPropagation(); |
676 | 677 | } ); |
677 | | - |
678 | 678 | } ); |
679 | 679 | }, |
680 | 680 | |