Difference between revisions of "MediaWiki:Common.js"

From TaticView
Jump to: navigation, search
Line 7: Line 7:
 
   }
 
   }
  
 
  $("#content-collapsible-block-0").addClass("open-block");
 
  $(".mw-parser-output > h2").first().off("click");
 
 
 
  $("#mw-mf-page-left ul:last-child").removeClass('hlist');
 
 
})
 
})

Revision as of 16:19, 22 January 2019

/* Any JavaScript here will be loaded for all users on every page load. */

$(function(){
  //Mostra o menu de ferramentas para usuários autenticados (que possuem registro)
  if (mw.user.getRegistration() && mw.user.getId() > 0) {
    $('#mw-navigation #p-tb').css('cssText', 'display: block !important;');
  }

})