User:Chaotic Enby/Unblock wizard.js: Difference between revisions
From Test Wiki
Content deleted Content added
Chaotic Enby (talk | contribs) No edit summary |
Chaotic Enby (talk | contribs) No edit summary |
||
| Line 84: | Line 84: | ||
var emptyFields = false; |
var emptyFields = false; |
||
var emptyFieldsWarned = false; |
var emptyFieldsWarned = false; |
||
var mainPosition = |
var mainPosition = -1; |
||
function init() { |
function init() { |
||
| Line 343: | Line 343: | ||
function setMainStatus(type, message) { |
function setMainStatus(type, message) { |
||
debug("a"); |
debug("a"); |
||
if (mainPosition == -1) { |
|||
if (!ui.mainStatusLayout || !ui.mainStatusLayout.isElementAttached()) { |
|||
debug("b"); |
debug("b"); |
||
debug(ui.fieldset); |
debug(ui.fieldset); |
||
| Line 360: | Line 360: | ||
} else { |
} else { |
||
debug("ee"); |
debug("ee"); |
||
| ⚫ | |||
ui.mainStatusLayout = new OO.ui.FieldLayout(ui.mainStatusArea = new OO.ui.LabelWidget({ |
ui.mainStatusLayout = new OO.ui.FieldLayout(ui.mainStatusArea = new OO.ui.LabelWidget({ |
||
label: $('<div>') |
label: $('<div>').append(linkify(message)) |
||
| ⚫ | |||
}), { |
}), { |
||
align: 'top' |
align: 'top' |
||
}); |
}); |
||
debug(ui.mainStatusArea); |
|||
debug(ui.fieldset); |
debug(ui.fieldset); |
||
debug("ff"); |
debug("ff"); |
||