Index: trunk/extensions/UsabilityInitiative/Vector/Modules/EditWarning/EditWarning.js |
— | — | @@ -1,8 +1,8 @@ |
2 | 2 | /* JavaScript for EditWarning extension */ |
3 | 3 | |
4 | 4 | mw.ready( function() { |
5 | | - // Check if EditWarning is enabled |
6 | | - if ( !wgVectorEnabledModules.editwarning ) { |
| 5 | + // Check if EditWarning is enabled and if we need it |
| 6 | + if ( !wgVectorEnabledModules.editwarning || $j( '#wpTextbox1' ).size() == 0 ) { |
7 | 7 | return true; |
8 | 8 | } |
9 | 9 | // Get the original values of some form elements |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php |
— | — | @@ -14,15 +14,15 @@ |
15 | 15 | 'raw' => array( |
16 | 16 | array( 'src' => 'Modules/CollapsibleNav/CollapsibleNav.js', 'version' => 6 ), |
17 | 17 | array( 'src' => 'Modules/CollapsibleTabs/CollapsibleTabs.js', 'version' => 6 ), |
18 | | - array( 'src' => 'Modules/EditWarning/EditWarning.js', 'version' => 4 ), |
| 18 | + array( 'src' => 'Modules/EditWarning/EditWarning.js', 'version' => 5 ), |
19 | 19 | array( 'src' => 'Modules/FooterCleanup/FooterCleanup.js', 'version' => 1 ), |
20 | 20 | array( 'src' => 'Modules/SimpleSearch/SimpleSearch.js', 'version' => 5 ), |
21 | 21 | ), |
22 | 22 | 'combined' => array( |
23 | | - array( 'src' => 'Vector.combined.js', 'version' => 13 ), |
| 23 | + array( 'src' => 'Vector.combined.js', 'version' => 14 ), |
24 | 24 | ), |
25 | 25 | 'minified' => array( |
26 | | - array( 'src' => 'Vector.combined.min.js', 'version' => 13 ), |
| 26 | + array( 'src' => 'Vector.combined.min.js', 'version' => 14 ), |
27 | 27 | ), |
28 | 28 | ); |
29 | 29 | static $modules = array( |