User:Chaotic Enby/Unblock wizard.js: Difference between revisions

From Test Wiki
Content deleted Content added
No edit summary
No edit summary
Line 97: Line 97:
var mainPosition = -1;
var mainPosition = -1;
var demoMode = !!mw.util.getParamValue("demoMode");
var demoMode = !!mw.util.getParamValue("demoMode");
var usernameBlock = !!mw.util.getParamValue("usernameBlock");


function init() {
function init() {
Line 162: Line 163:
default:
default:
questionLabels = [];
questionLabels = [];
}
if(usernameBlock && blockType != "Username") {
questionLabels = ['username'] + questionLabels;
}
}