Weitere Optionen
K Bearbeiten-Tooltip im TV-Planer repariert |
Keine Bearbeitungszusammenfassung |
||
| Zeile 728: | Zeile 728: | ||
$('.geloeschteSeite').parent().css('color','#ba0000'); | $('.geloeschteSeite').parent().css('color','#ba0000'); | ||
}); | }); | ||
//=========================================================================== | |||
//=========================================================================== | |||
// Import-Skript für CSS-Styles analog zu importScript | |||
//--------------------------------------------------------------------------- | |||
function importStyle(page) { | |||
var uri = wgScript + '?title=' + | |||
encodeURIComponent(page.replace(/ /g,'_')).replace(/%2F/ig,'/').replace(/%3A/ig,':') + | |||
'&action=raw&ctype=text/css'; | |||
return importStyleURI(uri); | |||
} | |||
var loadedStyles = {}; // included-styles tracker | |||
function importStyleURI(url) { | |||
if (loadedStyles[url]) { | |||
return null; | |||
} | |||
loadedStyles[url] = true; | |||
var e = document.createElement('link'); | |||
e.setAttribute('href',url); | |||
e.setAttribute('rel','stylesheet'); | |||
document.getElementsByTagName('head')[0].appendChild(e); | |||
return e; | |||
} | |||
//=========================================================================== | //=========================================================================== | ||