r56205 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56204‎ | r56205 | r56206 >
Date:19:27, 11 September 2009
Author:catrope
Status:ok
Tags:
Comment:
NavigableTOC: (bug 20598) Fix indentation error
Modified paths:
  • /trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins.combined.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php
@@ -65,14 +65,14 @@
6666 array( 'src' => 'js/plugins/jquery.wikiEditor.js', 'version' => 4 ),
6767 array( 'src' => 'js/plugins/jquery.wikiEditor.toolbar.js', 'version' => 11 ),
6868 array( 'src' => 'js/plugins/jquery.wikiEditor.dialogs.js', 'version' => 2 ),
69 - array( 'src' => 'js/plugins/jquery.wikiEditor.toc.js', 'version' => 7 ),
 69+ array( 'src' => 'js/plugins/jquery.wikiEditor.toc.js', 'version' => 8 ),
7070 array( 'src' => 'js/js2/jquery-ui-1.7.2.js', 'version' => '1.7.2x' ),
7171 ),
7272 'combined' => array(
73 - array( 'src' => 'js/plugins.combined.js', 'version' => 18 ),
 73+ array( 'src' => 'js/plugins.combined.js', 'version' => 19 ),
7474 ),
7575 'minified' => array(
76 - array( 'src' => 'js/plugins.combined.min.js', 'version' => 18 ),
 76+ array( 'src' => 'js/plugins.combined.min.js', 'version' => 19 ),
7777 ),
7878 ),
7979 );
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js
@@ -207,7 +207,7 @@
208208 if ( outline[i].level > lastLevel ) {
209209 nLevel++;
210210 }
211 - else if ( outline[i].level < nLevel ) {
 211+ else if ( outline[i].level < lastLevel ) {
212212 nLevel -= Math.max( 1, lastLevel - outline[i].level );
213213 }
214214 if ( nLevel <= 0 ) {
@@ -227,4 +227,4 @@
228228 }
229229 }
230230
231 -}; } ) ( jQuery );
\ No newline at end of file
 231+}; } ) ( jQuery );
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js
@@ -2001,7 +2001,7 @@
20022002 if ( outline[i].level > lastLevel ) {
20032003 nLevel++;
20042004 }
2005 - else if ( outline[i].level < nLevel ) {
 2005+ else if ( outline[i].level < lastLevel ) {
20062006 nLevel -= Math.max( 1, lastLevel - outline[i].level );
20072007 }
20082008 if ( nLevel <= 0 ) {
@@ -2021,4 +2021,4 @@
20222022 }
20232023 }
20242024
2025 -}; } ) ( jQuery );
\ No newline at end of file
 2025+}; } ) ( jQuery );
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js
@@ -137,7 +137,7 @@
138138 var endLevel=0;for(var c=text.length-1;c>=0;c--){if(text.charAt(c)=='='){endLevel++;}else{break;}}
139139 var level=Math.min(startLevel,endLevel);text=$.trim(text.substr(level,text.length-(level*2)));outline[h]={'text':text,'position':position,'level':level,'index':h+1};}
140140 var lastLevel=0;var nLevel=0;for(var i=0;i<outline.length;i++){if(outline[i].level>lastLevel){nLevel++;}
141 -else if(outline[i].level<nLevel){nLevel-=Math.max(1,lastLevel-outline[i].level);}
 141+else if(outline[i].level<lastLevel){nLevel-=Math.max(1,lastLevel-outline[i].level);}
142142 if(nLevel<=0){nLevel=1;}
143143 outline[i].nLevel=nLevel;lastLevel=outline[i].level;}
144144 var structure=buildStructure(outline);if($('input[name=wpSection]').val()=='')

Status & tagging log