Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toolbar.js |
— | — | @@ -456,7 +456,11 @@ |
457 | 457 | .attr( 'href', '#' ) |
458 | 458 | .text( $.wikiEditor.autoMsg( section, 'label' ) ) |
459 | 459 | .data( 'context', context ) |
460 | | - .bind( 'mousedown', function() { |
| 460 | + .bind( 'mousedown', function( e ) { |
| 461 | + // Only act when the primary mouse button was pressed |
| 462 | + if ( e.button !== 0 ) { |
| 463 | + return true; |
| 464 | + } |
461 | 465 | var $sections = $(this).data( 'context' ).$ui.find( '.sections' ); |
462 | 466 | var $section = |
463 | 467 | $(this).data( 'context' ).$ui.find( '.section-' + $(this).parent().attr( 'rel' ) ); |