User:Chaotic Enby/Unblock wizard.js: Difference between revisions
From Test Wiki
Content deleted Content added
Chaotic Enby (talk | contribs) testing stuff |
Chaotic Enby (talk | contribs) test |
||
| Line 68: | Line 68: | ||
"status-redirecting": "Submission succeeded. Redirecting you to your talk page ...", |
"status-redirecting": "Submission succeeded. Redirecting you to your talk page ...", |
||
"status-redirecting-utrs": "Submission succeeded. Redirecting you to UTRS ...", |
"status-redirecting-utrs": "Submission succeeded. Redirecting you to UTRS ...", |
||
"status-error": "Due to an error, your unblock request could not be parsed. You can try to submit an |
"status-error": "Due to an error, your unblock request could not be parsed. You can try to submit an <b>unblock</b> request manually by pasting the following to your talk page:<br /><code>{{unblock | reason=Your reason here ~~" + "~~}}</code><br />If you are having difficulties, please make a request through UTRS and inform them of the issues you are encountering.", |
||
"captcha-label": "Please enter the letters appearing in the box below", |
"captcha-label": "Please enter the letters appearing in the box below", |
||
"captcha-placeholder": "Enter the letters here", |
"captcha-placeholder": "Enter the letters here", |
||
| Line 348: | Line 348: | ||
ui.mainStatusArea.setType(type); |
ui.mainStatusArea.setType(type); |
||
ui.mainStatusArea.setLabel(message); |
ui.mainStatusArea.setLabel(message); |
||
} |
|||
/** |
|||
* @param {string} type |
|||
* @param {string} message |
|||
*/ |
|||
function setTalkStatus(type, message) { |
|||
if (!ui.talkStatusLayout) { |
|||
ui.fieldset.addItems([ |
|||
ui.talkStatusLayout = new OO.ui.FieldLayout(ui.talkStatusArea = new OO.ui.MessageWidget()) |
|||
]); |
|||
} |
|||
ui.talkStatusArea.setType(type); |
|||
ui.talkStatusArea.setLabel(message); |
|||
} |
} |
||