[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 /* 2 * Remove the signature button if the main namespace is edited. 3 */ 4 jQuery( document ).ready( function ( $ ) { 5 // This module is designed not to depend on ext.wikiEditor or jquery.wikiEditor. 6 // Removing this dependency fixed various bugs, but it does mean that we have to 7 // account for the situation where $.wikiEditor is not present 8 if ( !$.wikiEditor || !$.wikiEditor.isSupported( $.wikiEditor.modules.toolbar ) ) { 9 return; 10 } 11 if ( $( 'body' ).hasClass( 'ns-0' ) ) { 12 $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'main', 'group': 'insert', 'tool': 'signature' } ); 13 } 14 } );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |