Pengguna:Py21/common.js: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
maintenance: more info TypeError: Cannot read property 'getElementsByTagName' of null |
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§ion=0";
mw.util.addPortletLink( 'p-cactions', sLink, sText, 'ca-edittop', 'Suntingan bagian atas halaman ini', null, document.getElementById( sElm ).nextSibling );
}
}
|