зеркало из https://github.com/mozilla/gecko-dev.git
Bug 620547 - Sync UI: Going back to complete PIN leaves Next button disabled. r=mconnor a=blocking-final
This commit is contained in:
Родитель
8ea987d62f
Коммит
5fbf92ab87
|
@ -68,7 +68,7 @@ let gSyncAddDevice = {
|
|||
|
||||
switch (this.wizard.pageIndex) {
|
||||
case ADD_DEVICE_PAGE:
|
||||
this.wizard.canAdvance = false;
|
||||
this.onTextBoxInput();
|
||||
this.wizard.canRewind = false;
|
||||
this.wizard.getButton("next").hidden = false;
|
||||
this.pin1.focus();
|
||||
|
@ -152,7 +152,7 @@ let gSyncAddDevice = {
|
|||
},
|
||||
|
||||
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.wizard.canAdvance = (this.pin1.value.length == PIN_PART_LENGTH
|
||||
|
|
Загрузка…
Ссылка в новой задаче