Index: trunk/extensions/WikiEditor/WikiEditor.php |
— | — | @@ -504,8 +504,5 @@ |
505 | 505 | ), |
506 | 506 | 'ext.wikiEditor.toolbar.hideSig' => $wikiEditorTpl + array( |
507 | 507 | 'scripts' => 'ext.wikiEditor.toolbar.hideSig.js', |
508 | | - 'dependencies' => array( |
509 | | - 'ext.wikiEditor', |
510 | | - ) |
511 | 508 | ), |
512 | 509 | ); |
Index: trunk/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.hideSig.js |
— | — | @@ -2,7 +2,10 @@ |
3 | 3 | * Remove the signature button if the main namespace is edited. |
4 | 4 | */ |
5 | 5 | $( document ).ready( function() { |
6 | | - if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.toolbar ) ) { |
| 6 | + // This module is designed not to depend on ext.wikiEditor or jquery.wikiEditor. |
| 7 | + // Removing this dependency fixed various bugs, but it does mean that we have to |
| 8 | + // account for the situation where $.wikiEditor is not present |
| 9 | + if ( !$.wikiEditor || !$.wikiEditor.isSupported( $.wikiEditor.modules.toolbar ) ) { |
7 | 10 | return; |
8 | 11 | } |
9 | 12 | if ( $( 'body' ).hasClass( 'ns-0' ) ) { |