KKeine Bearbeitungszusammenfassung |
K Seit MW1.17: jQuery anstatt addOnloadHook |
||
| Zeile 23: | Zeile 23: | ||
} | } | ||
if( mw.config.get( 'wgNamespaceNumber' ) !== -1 && mw.config.get( 'wgArticleId' ) !== 0 ){ | if( mw.config.get( 'wgNamespaceNumber' ) !== -1 && mw.config.get( 'wgArticleId' ) !== 0 ){ | ||
$(function () { | |||
mw.util.addPortletLink('p-views', 'http://stargate-wiki.de/w/index.php?title='+wgPageName+'&action=delete', 'L', 'ca-delN', 'Löschen', 'd'); | mw.util.addPortletLink('p-views', 'http://stargate-wiki.de/w/index.php?title='+wgPageName+'&action=delete', 'L', 'ca-delN', 'Löschen', 'd'); | ||
document.getElementById('ca-delete').style.display = "none"; | document.getElementById('ca-delete').style.display = "none"; | ||