[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/extensions/WikiEditor/modules/ -> ext.wikiEditor.toolbar.hideSig.js (source)

   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  } );


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1