MediaWiki:Common.js: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
K
K
Zeile 25: Zeile 25:
 
***********************************/
 
***********************************/
  
 +
//wenn css:styles...
 
for (i in wgCategories) {
 
for (i in wgCategories) {
   if (wgCategories[i]=='Styles') {
+
   if (wgCategories[i]=='Styles') {  
  
 
/*** LAYOUT ***/
 
/*** LAYOUT ***/
//importScript('mediawiki:layout.js');
+
importScript('mediawiki:layout.js');
  
 
/*** GLOSSAR ***/
 
/*** GLOSSAR ***/

Version vom 4. Januar 2012, 19:03 Uhr

for (i in wgUserGroups)
 if (wgUserGroups[i] == 'sysop')
  var sysopRights = true; 

/***********************************
       Stylesheet changes
***********************************/


document.write (
    '<style>' +
    ' body {}' + //0
    ' #content #bodyContent {}' + //1
    ' #p-personal {}' + //2 
    ' #siteNotice.fixed {}' + //3
    ' .glossar2:hover small small {}' + //4
    ' div#footer {}' + //5
    ' </style>'
    );   
var newCSS = document.styleSheets[document.styleSheets.length-1],
  newRules = newCSS.cssRules || newCSS.rules;  // für alle Browser ansprechbar

/***********************************
      IMPORT
***********************************/

//wenn css:styles...
for (i in wgCategories) {
  if (wgCategories[i]=='Styles') { 

/*** LAYOUT ***/
importScript('mediawiki:layout.js');

/*** GLOSSAR ***/
importScript('mediawiki:glossar.js');

/*** NAVIGATION ***/
importScript('mediawiki:navigation.js');

/*** POPUPS ***/
importScript('mediawiki:popup.js');
 
}
}

/*** EDIT GADGETS ***/
if (wgAction=='edit')
  importScript('mediawiki:edit.js');


/***********************************
      GADGETS
***********************************/

//Nach dem Einloggen wieder zur Ausgangsseite:
if (wgCanonicalSpecialPageName == "Userlogin")
	function() { document.location = document.getElementById('mw-returnto').getElementsByTagName('a')[0].href; } ;