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

From Test Wiki
Content deleted Content added
updates
No edit summary
Line 54: Line 54:
"future-promo-label": "If you are unblocked, what topic areas will you edit in?",
"future-promo-label": "If you are unblocked, what topic areas will you edit in?",
"username-label": "If you were blocked for having a promotional username, what new username do you want to pick?",
"username-label": "If you were blocked for having a promotional username, what new username do you want to pick?",
"standalone-username-label": "What new username do you want to pick?",
"clarification-label": "Is there anything specific you want to ask about your block?",
"clarification-label": "Is there anything specific you want to ask about your block?",
"submit-label": "Submit",
"submit-label": "Submit",
Line 88: Line 89:


var questionLabels = [];
var questionLabels = [];
var questionFields = {'explain': 0, 'future': 0, 'other': 0, 'accounts': 0, 'so': 2, 'explain-promo': 0, 'coi': 0, 'future-promo': 0, 'username': 1, 'clarification': 0};
var questionFields = {'explain': 0, 'future': 0, 'other': 0, 'accounts': 0, 'so': 2, 'explain-promo': 0, 'coi': 0, 'future-promo': 0, 'username': 1, 'clarification': 0, 'standalone-username': 1};
var required = {'explain': true, 'future': true, 'other': false, 'accounts': true, 'so': true, 'explain-promo': true, 'coi': true, 'future-promo': true, 'username': false, 'clarification': false};
var required = {'explain': true, 'future': true, 'other': false, 'accounts': true, 'so': true, 'explain-promo': true, 'coi': true, 'future-promo': true, 'username': false, 'clarification': false, 'standalone-username': true};


var blockType = '';
var blockType = '';
Line 155: Line 156:
case "Clarification":
case "Clarification":
questionLabels = ['clarification'];
questionLabels = ['clarification'];
break;
case "Username":
questionLabels = ['standalone-username'];
break;
break;
default:
default: