Changes

122 bytes removed ,  13:46, 1 July 2021
Replace addOnloadHook with $, per https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)
Line 121: Line 121:  
  }
 
  }
 
   
 
   
  addOnloadHook( LinkFA );
+
  $( LinkFA );
    
  /** Collapsible tables *********************************************************
 
  /** Collapsible tables *********************************************************
Line 203: Line 203:  
  }
 
  }
 
   
 
   
  addOnloadHook( createCollapseButtons );
+
  $( createCollapseButtons );
    
  /** Dynamic Navigation Bars (experimental) *************************************
 
  /** Dynamic Navigation Bars (experimental) *************************************
Line 316: Line 316:  
   }
 
   }
 
    
 
    
  addOnloadHook( createNavigationBarToggleButton );
+
$( createNavigationBarToggleButton );
    
  /** Main Page layout fixes *********************************************************
 
  /** Main Page layout fixes *********************************************************
Line 364: Line 364:     
  if ( wgTitle == 'Main Page' && ( wgNamespaceNumber == 0 || wgNamespaceNumber == 1 ) ) {
 
  if ( wgTitle == 'Main Page' && ( wgNamespaceNumber == 0 || wgNamespaceNumber == 1 ) ) {
         addOnloadHook( mainPageRenameNamespaceTab );
+
         $( mainPageRenameNamespaceTab );
 
  }
 
  }
 
   
 
   
 
  if ( wgTitle == 'Main Page' && wgNamespaceNumber == 0 ) {
 
  if ( wgTitle == 'Main Page' && wgNamespaceNumber == 0 ) {
         addOnloadHook( mainPageAppendCompleteListLink );
+
         $( mainPageAppendCompleteListLink );
 
  }
 
  }
 
// End disable
 
// End disable
Line 521: Line 521:  
  var disableRealTitle = 0; // users can set disableRealTitle = 1 locally to disable.
 
  var disableRealTitle = 0; // users can set disableRealTitle = 1 locally to disable.
 
  if (wgIsArticle) { // don't display the RealTitle when editing, since it is apparently inconsistent (doesn't show when editing sections, doesn't show when not previewing)
 
  if (wgIsArticle) { // don't display the RealTitle when editing, since it is apparently inconsistent (doesn't show when editing sections, doesn't show when not previewing)
   addOnloadHook(function() {
+
   $(function() {
 
     try {
 
     try {
 
         var realTitleBanner = document.getElementById("RealTitleBanner");
 
         var realTitleBanner = document.getElementById("RealTitleBanner");
Line 591: Line 591:  
  //edit summary unchanged
 
  //edit summary unchanged
 
  //this was added by [[User:Deskana]], code by [[User:Tra]]
 
  //this was added by [[User:Deskana]], code by [[User:Tra]]
  addOnloadHook(function () {
+
  $(function () {
 
   if (document.location.search.indexOf("undo=") != -1
 
   if (document.location.search.indexOf("undo=") != -1
 
   && document.getElementsByName('wpAutoSummary')[0]) {
 
   && document.getElementsByName('wpAutoSummary')[0]) {
Line 635: Line 635:  
     watchlistMessage.style.display = "none";
 
     watchlistMessage.style.display = "none";
 
  }
 
  }
+
 
  addOnloadHook( addDismissButton );
+
  $( addDismissButton );
    
  /** Numeric sorting ***************************************************
 
  /** Numeric sorting ***************************************************
Line 686: Line 686:  
  }
 
  }
 
   
 
   
  addOnloadHook( MainPageDeletedImage );
+
  $( MainPageDeletedImage );
    
// End block
 
// End block
Line 714: Line 714:  
  if (wgPageName == "Special:Search") {
 
  if (wgPageName == "Special:Search") {
 
         var searchEngines = [];
 
         var searchEngines = [];
         addOnloadHook(SpecialSearchEnhanced);
+
         $(SpecialSearchEnhanced);
 
  }
 
  }