Pengguna:Py21/common.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Jon (WMF) (bicara | kontrib)
maintenance: more info TypeError: Cannot read property 'getElementsByTagName' of null
Jon (WMF) (bicara | kontrib)
maintenance: more info phab:T72470
Baris 14:
*/
function addEdittopPortletLink() {
if(mw.config.get('wgCanonicalNamespace') == 'Special') return;
if(document.getElementById("wikiPreview")) return;
if(document.getElementById("histlegend‎")) return;
Baris 22:
var sElm = document.getElementById( "ca-addsection" ) ? 'ca-addsection' : 'ca-edit';
var sText = (skin=='vector')?'Sunting bagian atas':'▲';
var sLink = mw.config.get('wgScriptPath') + "/index.php?title=" + mw.config.get('wgPageName') + "&action=edit&section=0";
mw.util.addPortletLink( 'p-cactions', sLink, sText, 'ca-edittop', 'Suntingan bagian atas halaman ini', null, document.getElementById( sElm ).nextSibling );
}
}