MediaWiki:InterProject.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
elimino il controllo della doppia inclusione che non dovrebbe accadere |
se presente il menù della funzionalità beta ne aggiorno i link e non creo quello dell'interprogetto in locale |
||
Riga 13:
var sisterPr = document.getElementById('sisterProjects');
if (!interPr) return;
$( '.wb-otherproject-wikinews a' ).attr("href", $( "#interProject div ul li:contains('Wikinotizie') a" ).attr("href"));
$( '.wb-otherproject-wikiquote a' ).attr("href", $( "#interProject div ul li:contains('Wikiquote') a" ).attr("href"));
$( '.wb-otherproject-wikisource a' ).attr("href", $( "#interProject div ul li:contains('Wikisource') a" ).attr("href"));
$( '.wb-otherproject-wikivoyage a' ).attr("href", $( "#interProject div ul li:contains('Wikivoyage') a" ).attr("href"));
$( '.wb-otherproject-commons a' ).attr("href", $( "#interProject div ul li:contains('Commons') a" ).attr("href"));
return;
▲ }
var toolBox = document.getElementById('p-coll-print_export');
var panel;
Line 44 ⟶ 52:
interPr.innerHTML + '<\/div>';
▲ $('#p-wikibase-otherprojects').remove();
if (toolBox && toolBox.nextSibling) {
panel.insertBefore(interProject, toolBox.nextSibling);
|