Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

fixed issue #4224 #4226

Open
wants to merge 1 commit into
base: future
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions resources/static/dialog/js/modules/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,17 @@ BrowserID.Modules.Authenticate = (function() {
}

self.bind(EMAIL_SELECTOR, "keyup", emailChange);

// In case of autofill the continue button was disabled
// To make sure that email field is not empty we have to
// use setInterval function.
// See issue #4224
window.setInterval(function(){
var emailFieldValue = dom.getInner(EMAIL_SELECTOR);
if(emailFieldValue != '') {
dom.removeAttr(CONTINUE_BUTTON_SELECTOR, DISABLED_ATTRIBUTE);
}
}, 200);
// Adding the change event causes the email to be checked whenever an
// element blurs but it has been updated via autofill. See issue #406
self.bind(EMAIL_SELECTOR, "change", emailChange);
Expand Down