User:Chaotic Enby/Unblock wizard.js: Difference between revisions
From Test Wiki
Content deleted Content added
Chaotic Enby (talk | contribs) ? |
Chaotic Enby (talk | contribs) mainstatusarea |
||
| Line 84: | Line 84: | ||
var emptyFields = false; |
var emptyFields = false; |
||
var emptyFieldsWarned = false; |
var emptyFieldsWarned = false; |
||
var mainStatus = false; |
|||
function init() { |
function init() { |
||
| Line 343: | Line 342: | ||
function setMainStatus(type, message) { |
function setMainStatus(type, message) { |
||
debug("a"); |
debug("a"); |
||
if (!ui.mainStatusLayout || !ui.mainStatusLayout.isElementAttached()) { |
|||
if (!mainStatus) { |
|||
debug("b"); |
debug("b"); |
||
ui.fieldset.addItems([ |
ui.fieldset.addItems([ |
||
| Line 354: | Line 353: | ||
]); |
]); |
||
debug("c"); |
debug("c"); |
||
mainStatus = true; |
|||
} else { |
} else { |
||
debug("ee"); |
debug("ee"); |
||
ui.mainStatusArea = new OO.ui.LabelWidget({ |
|||
label: $('<div>') |
label: $('<div>') |
||
.append(linkify(message)) |
.append(linkify(message)) |
||
}), { |
|||
align: 'top' |
|||
}); |
}); |
||
debug("ff"); |
debug("ff"); |
||