r79975 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79974‎ | r79975 | r79976 >
Date:23:45, 10 January 2011
Author:tparscal
Status:ok
Tags:
Comment:
Fixed annoying bug where the index would not highlight the current page the first time you open the booklet.
Modified paths:
  • /trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js
@@ -701,7 +701,8 @@
702702 }
703703 var $selectedIndex = $index.find( '*[rel=' + selected + ']' );
704704 if ( $selectedIndex.size() == 0 ) {
705 - selected = $index.children().eq( 0 ).attr( 'rel' );
 705+ $selectedIndex = $index.children().eq( 0 );
 706+ selected = $selectedIndex.attr( 'rel' );
706707 $.cookie( cookie, selected, { expires: 30, path: '/' } );
707708 }
708709 $pages.children().hide();

Follow-up revisions

RevisionCommit summaryAuthorDate
r802571.17: MFT r79821, r79842, r79970, r79973, r79975, r79978, r80057, r80058, r80...catrope12:35, 14 January 2011

Status & tagging log