MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 258: | Line 258: | ||
/* ================================================ */ | /* ================================================ */ | ||
/* ADMIN CONTROL PANEL | /* ADMIN CONTROL PANEL -- AlphaX Wiki */ | ||
/* ================================================ */ | /* ================================================ */ | ||
(function() { | (function() { | ||
| Line 534: | Line 534: | ||
fetchPages(null).then(function(){ | fetchPages(null).then(function(){ | ||
setP('Step 2/4 | setP('Step 2/4 -- Fetching info & categories for '+pages.length+' articles...'); | ||
pages.forEach(function(p){map[p.pageid]={title:p.title,cat:'',subcat:'',words:0,size:0,created:'',touched:'',revisions:0,watchers:0,links:0};}); | pages.forEach(function(p){map[p.pageid]={title:p.title,cat:'',subcat:'',words:0,size:0,created:'',touched:'',revisions:0,watchers:0,links:0};}); | ||
ids=pages.map(function(p){return p.pageid;}); | ids=pages.map(function(p){return p.pageid;}); | ||
return fetchInfoChunk(0); | return fetchInfoChunk(0); | ||
}).then(function(){ | }).then(function(){ | ||
setP('Step 3/4 | setP('Step 3/4 -- Counting revisions...'); | ||
return fetchRevChunk(0); | return fetchRevChunk(0); | ||
}).then(function(){ | }).then(function(){ | ||
setP('Step 4/4 | setP('Step 4/4 -- Calculating word counts & inbound links...'); | ||
return fetchContentChunk(0); | return fetchContentChunk(0); | ||
}).then(function(){ | }).then(function(){ | ||