mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-28 18:21:02 +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' } );
|
|
}
|
|
});
|