MediaWiki:Common.js: Διαφορά μεταξύ των αναθεωρήσεων
Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
update |
|||
Γραμμή 1:
mw.loader.using(['mediawiki.util', 'jquery.cookie']).then(function () {
// Crudely widen the sitenotice message to 100% page width and hide the dismiss link.
// NB: This one is better left commented out when not specifically needed.
Γραμμή 94 ⟶ 95 :
}
$(pageQuality);
Γραμμή 109 ⟶ 108 :
ig.parentNode.insertBefore(f,ig.nextSibling.nextSibling.nextSibling.nextSibling);
}
$(pr_add_quality_buttons_link);
/****************
Γραμμή 123 ⟶ 120 :
importScript("MediaWiki:Common.js/watchlist.js")
}*/
/**********************
Γραμμή 166 ⟶ 162 :
$(addCharSubsetMenu);
/**
Γραμμή 175 ⟶ 169 :
*/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.usejs.js');
})();▼
/** Collapsible tables *********************************************************
Γραμμή 229 ⟶ 212 :
for ( var i = 0; i < Tables.length; i++ ) {
if (
/* only add button and increment count if there is a header row to work with */
Γραμμή 267 ⟶ 250 :
for ( var i = 0; i < tableIndex; i++ ) {
if (
collapseTable( i );
}
else if (
var element = NavigationBoxes[i];
while (element = element.parentNode) {
if (
collapseTable ( i );
break;
Γραμμή 310 ⟶ 293 :
if (NavToggle.firstChild.data == NavigationBarHide) {
for (var NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling) {
if (
NavChild.style.display = 'none';
}
if (
NavChild.style.display = 'none';
}
Γραμμή 322 ⟶ 305 :
} else if (NavToggle.firstChild.data == NavigationBarShow) {
for (var NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling) {
if (
NavChild.style.display = 'block';
}
if (
NavChild.style.display = 'block';
}
Γραμμή 341 ⟶ 324 :
for (var i = 0; NavFrame = divs[i]; i++) {
// if found a navigation bar
if (
indexNavigationBar++;
Γραμμή 349 ⟶ 332 :
NavToggle.setAttribute('href', 'javascript:toggleNavigationBar(' + indexNavigationBar + ');');
var isCollapsed =
/*
* Check if any children are already hidden. This loop is here for backwards compatibility:
Γραμμή 358 ⟶ 341 :
*/
for (var NavChild = NavFrame.firstChild; NavChild != null && !isCollapsed; NavChild = NavChild.nextSibling) {
if ( $(NavChild).hasClass(
if ( NavChild.style.display == 'none' ) {
isCollapsed = true;
Γραμμή 366 ⟶ 349 :
if (isCollapsed) {
for (var NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling) {
if ( $(NavChild).hasClass(
NavChild.style.display = 'none';
}
Γραμμή 376 ⟶ 359 :
// Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked)
for(var j=0; j < NavFrame.childNodes.length; j++) {
if (
NavFrame.childNodes[j].appendChild(NavToggle);
}
Γραμμή 386 ⟶ 369 :
$( createNavigationBarToggleButton );
/*
Γραμμή 582 ⟶ 563 :
/* Find the nodes where class="tabbertab" */
if(childNodes[i].className &&
/* Create a new object to save info about this tab */
Γραμμή 880 ⟶ 861 :
/* Is this DIV the correct class? */
if (divs[i].className &&
if (
tabberArgs.spaceTabs = true;
}
Γραμμή 953 ⟶ 934 :
}
$(nikud);
/*scripts imported from wikisource.org*/
Γραμμή 1.062 ⟶ 1.040 :
});
}
//Απόκρυψη του namespace Συγγραφέας από τις κατηγορίες Συγγραφέων, πρέπει να έχουν το πρότυπο Κατηγορία συγγραφέων για να δουλέψει
Γραμμή 1.075 ⟶ 1.052 :
}
$(catprefix)
|