Bug 620547 - Sync UI: Going back to complete PIN leaves Next button disabled. r=mconnor a=blocking-final

This commit is contained in:
Philipp von Weitershausen 2011-01-05 09:21:12 -08:00
Родитель 8ea987d62f
Коммит 5fbf92ab87
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -68,7 +68,7 @@ let gSyncAddDevice = {
switch (this.wizard.pageIndex) { switch (this.wizard.pageIndex) {
case ADD_DEVICE_PAGE: case ADD_DEVICE_PAGE:
this.wizard.canAdvance = false; this.onTextBoxInput();
this.wizard.canRewind = false; this.wizard.canRewind = false;
this.wizard.getButton("next").hidden = false; this.wizard.getButton("next").hidden = false;
this.pin1.focus(); this.pin1.focus();
@ -152,7 +152,7 @@ let gSyncAddDevice = {
}, },
onTextBoxInput: function onTextBoxInput(textbox) { onTextBoxInput: function onTextBoxInput(textbox) {
if (textbox.value.length == PIN_PART_LENGTH) if (textbox && textbox.value.length == PIN_PART_LENGTH)
this.nextFocusEl[textbox.id].focus(); this.nextFocusEl[textbox.id].focus();
this.wizard.canAdvance = (this.pin1.value.length == PIN_PART_LENGTH this.wizard.canAdvance = (this.pin1.value.length == PIN_PART_LENGTH