Pengguna:Iwan Novirion/wikEd dev.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
←Membuat halaman berisi '// <pre><nowiki> // version info window.wikEdProgramVersion = window.wikEdProgramVersion || '0.9.91beta6a'; window.wikEdAutoUpdate = false; window.wikEdProgramDate = ...'
 
Krinkle (bicara | kontrib)
Maintenance: Remove use of deprecated wgEnableAPI (always true) - mw:RL/MGU
 
Baris 1.878:
 
// parse global MediaWiki globals into hash
var variable = ['wgServer', 'wgTitle', 'wgCanonicalNamespace', 'wgArticlePath', 'wgScript', 'wgScriptPath', 'wgUserName', 'wgCurRevisionId', 'wgScript', 'wgContentLanguage', 'wgUserLanguage', 'wgEnableAPI', 'wgPageName'];
for (var i = 0; i < variable.length; i ++) {
wikEdWikiGlobals[ variable[i] ] = WikEdGetGlobal(variable[i]);
Baris 2.817:
// hide typo fix button until typo fix rules are loaded and parsed
document.getElementById('wikEdFixRegExTypo').style.display = 'none';
 
// hide buttons if API is not available
if (wikEdWikiGlobals['wgEnableAPI'] != 'true') {
document.getElementById('wikEdFixRedirect').style.display = 'none';
}
 
// add a clear summary button left to the summary input field
Baris 8.064 ⟶ 8.059:
 
// check if api is enabled
if ( (wikEdWikiGlobals['wgEnableAPI'] != 'true') || (wikEdScriptURL == '') ) {
return;
}