2011-04-22 12:10:18 +00:00
|
|
|
/*
|
|
|
|
* Remove the signature button if the main namespace is edited.
|
|
|
|
*/
|
2013-10-30 16:53:24 +00:00
|
|
|
jQuery( document ).ready( function ( $ ) {
|
2011-09-29 19:04:54 +00:00
|
|
|
// This module is designed not to depend on ext.wikiEditor or jquery.wikiEditor.
|
|
|
|
// Removing this dependency fixed various bugs, but it does mean that we have to
|
|
|
|
// account for the situation where $.wikiEditor is not present
|
|
|
|
if ( !$.wikiEditor || !$.wikiEditor.isSupported( $.wikiEditor.modules.toolbar ) ) {
|
2011-04-22 12:10:18 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
if ( $( 'body' ).hasClass( 'ns-0' ) ) {
|
|
|
|
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'main', 'group': 'insert', 'tool': 'signature' } );
|
|
|
|
}
|
2013-10-30 16:53:24 +00:00
|
|
|
} );
|