MediaWiki r103761 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r103760‎ | r103761 (on ViewVC)‎ | r103762 >
Date:15:02, 20 November 2011
Author:catrope
Status:ok
Tags:
Comment:
(bug 32451) Clicking on a special characters section loses the selection in IE8. Patch by Lupo
Modified paths:

Diff [purge]

Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js
@@ -438,13 +438,13 @@
439439 }
440440 },
441441 buildBookmark : function( context, id, page ) {
442 - var label = $.wikiEditor.autoMsg( page,
443 - 'label' );
 442+ var label = $.wikiEditor.autoMsg( page, 'label' );
444443 return $( '<div/>' )
445444 .text( label )
446445 .attr( 'rel', id )
447446 .data( 'context', context )
448447 .mousedown( function( e ) {
 448+ context.fn.saveCursorAndScrollTop();
449449 // No dragging!
450450 e.preventDefault();
451451 return false;
@@ -464,6 +464,7 @@
465465 if ( $.trackAction !== undefined){
466466 $.trackAction(section + '.' + $(this).attr('rel'));
467467 }
 468+ context.fn.restoreCursorAndScrollTop();
468469 // No dragging!
469470 event.preventDefault();
470471 return false;
@@ -488,7 +489,7 @@
489490 html += $.wikiEditor.modules.toolbar.fn.buildRow( context, page.rows[i] );
490491 }
491492 }
492 - $page.html( html );
 493+ $page.html( html + '</table>');
493494 break;
494495 case 'characters':
495496 $page.addClass( 'page-characters' );

Status & tagging log

  • 15:25, 14 January 2012 Siebrand (Talk | contribs) changed the tags for r103761 [removed: miscextensions]
  • 15:09, 12 January 2012 ^demon (Talk | contribs) changed the status of r103761 [removed: new added: ok]
  • 06:38, 5 January 2012 RobLa-WMF (Talk | contribs) changed the tags for r103761 [added: miscextensions]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox