mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 12:00:05 +00:00
12 lines
353 B
JavaScript
12 lines
353 B
JavaScript
/*
|
|
* Remove the signature button if the main namespace is edited.
|
|
*/
|
|
$( document ).ready( function() {
|
|
if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.toolbar ) ) {
|
|
return;
|
|
}
|
|
if ( $( 'body' ).hasClass( 'ns-0' ) ) {
|
|
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'main', 'group': 'insert', 'tool': 'signature' } );
|
|
}
|
|
});
|