MediaWiki:Common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
non si può usare importScript per caricare dipendenze in maniera affidabile; uso jQuery.getScript
jQuery --> $
Riga 17:
 
/*** Collegamento diretto alla pagina di upload di Commons nel portlet Strumenti */
jQuery(document).ready$(function(){
mw.util.addPortletLink('p-tb', 'http://commons.wikimedia.org/wiki/Commons:Upload/it',
'Carica su Commons', 't-uploadcommons', 'Carica file multimediali su Wikimedia Commons', 'm', '#t-specialpages')
Riga 38:
}
 
jQuery(document).ready$( LinkAdQ );
 
 
Riga 46:
*/
if (mw.config.get('wgPageName') == "Pagina_principale" || mw.config.get('wgPageName') == "Discussioni:Pagina_principale")
jQuery(document).ready$(function($){
if (mw.config.get('wgUserLanguage') == 'it')
$j('#ca-nstab-main a').text('Pagina principale');
Riga 65:
// </nowiki>An element with id=DisableRealTitle disables the function.
var disableRealTitle = 0; // users can disable this by making this true from their user script
jQuery(document).ready$(function($) {
try {
var realTitleBanner = document.getElementById("RealTitleBanner");
Riga 143:
 
if (mw.config.get('wgNamespaceNumber') == 0 && mw.config.get('wgArticleId') == 0){
jQuery$.getScript('/w/index.php?title=Wikipedia:Proposte_di_trasferimento/transferlist.js&action=raw&ctype=text/javascript', function(){
jQuery(document).ready$(show_transfertext);
});
}
Riga 204:
}
jQuery(document).ready$(aggiungiMenuSubsetCaratteri);
 
// END Menu caratteri speciali
Riga 220:
if (mw.config.get('wgPageName') == "Speciale:Ricerca")
jQuery(document).ready$(function() {
var searchEngines = [];
var createOption = function(site, action, mainQ, addQ, addV) {
Riga 391:
}
 
jQuery(document).ready$(createNavigationBarToggleButton);
 
// END Dynamic Navigation Bars
Riga 477:
}
 
jQuery(document).ready$( createCollapseButtons );
 
//END Collapsible tables
Riga 545:
}
jQuery(document).ready$(hiddencat);
 
/* Layout pagina di modifica */
jQuery(document).ready$( function ()
{
if (mw.config.get('wgAction') == "edit")
Riga 558:
 
/* Aggiunge il testo delle note come tooltip delle note stesse */
jQuery(document).ready$ ( function ()
{
sups = document.getElementsByTagName("sup");
Riga 582:
 
/* Avvisa quando si tenta di creare una voce con titolo non valido ("Scrivi qui il titolo")*/
jQuery(document).ready$ ( function ()
{
if (mw.config.get('wgTitle') == "Scrivi qui il titolo" && mw.config.get('wgAction') == "edit")