Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -65,14 +65,14 @@ |
66 | 66 | array( 'src' => 'js/plugins/jquery.wikiEditor.js', 'version' => 4 ), |
67 | 67 | array( 'src' => 'js/plugins/jquery.wikiEditor.toolbar.js', 'version' => 11 ), |
68 | 68 | 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 ), |
70 | 70 | array( 'src' => 'js/js2/jquery-ui-1.7.2.js', 'version' => '1.7.2x' ), |
71 | 71 | ), |
72 | 72 | 'combined' => array( |
73 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 18 ), |
| 73 | + array( 'src' => 'js/plugins.combined.js', 'version' => 19 ), |
74 | 74 | ), |
75 | 75 | 'minified' => array( |
76 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 18 ), |
| 76 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 19 ), |
77 | 77 | ), |
78 | 78 | ), |
79 | 79 | ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | if ( outline[i].level > lastLevel ) { |
209 | 209 | nLevel++; |
210 | 210 | } |
211 | | - else if ( outline[i].level < nLevel ) { |
| 211 | + else if ( outline[i].level < lastLevel ) { |
212 | 212 | nLevel -= Math.max( 1, lastLevel - outline[i].level ); |
213 | 213 | } |
214 | 214 | if ( nLevel <= 0 ) { |
— | — | @@ -227,4 +227,4 @@ |
228 | 228 | } |
229 | 229 | } |
230 | 230 | |
231 | | -}; } ) ( jQuery ); |
\ No newline at end of file |
| 231 | +}; } ) ( jQuery ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -2001,7 +2001,7 @@ |
2002 | 2002 | if ( outline[i].level > lastLevel ) { |
2003 | 2003 | nLevel++; |
2004 | 2004 | } |
2005 | | - else if ( outline[i].level < nLevel ) { |
| 2005 | + else if ( outline[i].level < lastLevel ) { |
2006 | 2006 | nLevel -= Math.max( 1, lastLevel - outline[i].level ); |
2007 | 2007 | } |
2008 | 2008 | if ( nLevel <= 0 ) { |
— | — | @@ -2021,4 +2021,4 @@ |
2022 | 2022 | } |
2023 | 2023 | } |
2024 | 2024 | |
2025 | | -}; } ) ( jQuery ); |
\ No newline at end of file |
| 2025 | +}; } ) ( jQuery ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | var endLevel=0;for(var c=text.length-1;c>=0;c--){if(text.charAt(c)=='='){endLevel++;}else{break;}} |
139 | 139 | 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};} |
140 | 140 | 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);} |
142 | 142 | if(nLevel<=0){nLevel=1;} |
143 | 143 | outline[i].nLevel=nLevel;lastLevel=outline[i].level;} |
144 | 144 | var structure=buildStructure(outline);if($('input[name=wpSection]').val()=='') |