Index: trunk/extensions/UsabilityInitiative/Vector/Modules/CollapsibleNav/CollapsibleNav.js |
— | — | @@ -2,18 +2,19 @@ |
3 | 3 | /* First draft and will be changing greatly */ |
4 | 4 | |
5 | 5 | mw.addOnloadHook( function() { |
6 | | - if( !wgVectorEnabledModules.collapsibleleftnav ) |
| 6 | + if( !wgVectorEnabledModules.collapsibleleftnav ) { |
7 | 7 | return true; |
| 8 | + } |
8 | 9 | $j( '#panel' ).addClass( 'collapsible-nav' ); |
9 | | - $j( '#panel > div.portal' ).toggleClass( 'collapsed' ); |
10 | 10 | $j( '#panel > div.portal:first' ) |
11 | | - .toggleClass( 'expanded' ) |
12 | | - .toggleClass( 'collapsed' ) |
| 11 | + .addClass( 'expanded' ) |
13 | 12 | .find( 'div.body' ) |
14 | | - .slideToggle( 'fast' ); |
| 13 | + .show(); |
| 14 | + $j( '#panel > div.portal:not(:first)' ) |
| 15 | + .addClass( 'collapsed' ); |
15 | 16 | // Toggle the selected menu's class and expand or collapse the menu |
16 | 17 | $j( '#panel > div.portal > h5' ).click( function() { |
17 | | - $j( this ) |
| 18 | + $j(this) |
18 | 19 | .parent() |
19 | 20 | .toggleClass( 'expanded' ) |
20 | 21 | .toggleClass( 'collapsed' ) |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php |
— | — | @@ -12,16 +12,16 @@ |
13 | 13 | |
14 | 14 | static $scripts = array( |
15 | 15 | 'raw' => array( |
16 | | - array( 'src' => 'Modules/CollapsibleNav/CollapsibleNav.js', 'version' => 3 ), |
| 16 | + array( 'src' => 'Modules/CollapsibleNav/CollapsibleNav.js', 'version' => 4 ), |
17 | 17 | array( 'src' => 'Modules/CollapsibleTabs/CollapsibleTabs.js', 'version' => 6 ), |
18 | 18 | array( 'src' => 'Modules/EditWarning/EditWarning.js', 'version' => 4 ), |
19 | 19 | array( 'src' => 'Modules/SimpleSearch/SimpleSearch.js', 'version' => 4 ), |
20 | 20 | ), |
21 | 21 | 'combined' => array( |
22 | | - array( 'src' => 'Vector.combined.js', 'version' => 9 ), |
| 22 | + array( 'src' => 'Vector.combined.js', 'version' => 10 ), |
23 | 23 | ), |
24 | 24 | 'minified' => array( |
25 | | - array( 'src' => 'Vector.combined.min.js', 'version' => 9 ), |
| 25 | + array( 'src' => 'Vector.combined.min.js', 'version' => 10 ), |
26 | 26 | ), |
27 | 27 | ); |
28 | 28 | static $modules = array( |
Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -28,11 +28,11 @@ |
29 | 29 | array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ), |
30 | 30 | ), |
31 | 31 | 'combined' => array( |
32 | | - array( 'src' => 'css/combined.css', 'version' => 46 ), |
| 32 | + array( 'src' => 'css/combined.css', 'version' => 47 ), |
33 | 33 | array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ), |
34 | 34 | ), |
35 | 35 | 'minified' => array( |
36 | | - array( 'src' => 'css/combined.min.css', 'version' => 46 ), |
| 36 | + array( 'src' => 'css/combined.min.css', 'version' => 47 ), |
37 | 37 | array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ), |
38 | 38 | ), |
39 | 39 | ) |