Enter key press issues resolved
This commit is contained in:
parent
acba3e59ae
commit
7c06afc3bb
@ -59,6 +59,7 @@ ManageAccountDialog.display = function(logged_in_username, saved_credentials, ca
|
|||||||
var Login = (function() {
|
var Login = (function() {
|
||||||
return function() {
|
return function() {
|
||||||
frame.hide();
|
frame.hide();
|
||||||
|
isOpen = false;
|
||||||
Refine.postCSRF(
|
Refine.postCSRF(
|
||||||
"command/wikidata/login",
|
"command/wikidata/login",
|
||||||
elmts.loginForm.serialize(),
|
elmts.loginForm.serialize(),
|
||||||
@ -84,7 +85,6 @@ ManageAccountDialog.display = function(logged_in_username, saved_credentials, ca
|
|||||||
document.addEventListener('keydown', function(event) {
|
document.addEventListener('keydown', function(event) {
|
||||||
if(isOpen == true){
|
if(isOpen == true){
|
||||||
if (event.keyCode == 13) {
|
if (event.keyCode == 13) {
|
||||||
isOpen = false;
|
|
||||||
Login();
|
Login();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user