jenkins-bot has submitted this change and it was merged.

Change subject: Put initial focus on token field
......................................................................


Put initial focus on token field

It's not like people are going to do anything else here, so
autofocussing is allowed in this case (no accessibility problem)
and speeds up interaction.

Bug: T150861
Change-Id: I6b41cc763156b48d8e35fb6829f70f0eb01e5511
---
M special/SpecialOATHDisable.php
M special/SpecialOATHLogin.php
2 files changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Gergő Tisza: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/special/SpecialOATHDisable.php b/special/SpecialOATHDisable.php
index 0a75b27..2c06f22 100644
--- a/special/SpecialOATHDisable.php
+++ b/special/SpecialOATHDisable.php
@@ -75,6 +75,8 @@
                                'type' => 'text',
                                'label-message' => 'oathauth-entertoken',
                                'name' => 'token',
+                               'required' => true,
+                               'autofocus' => true,
                        ],
                        'returnto' => [
                                'type' => 'hidden',
diff --git a/special/SpecialOATHLogin.php b/special/SpecialOATHLogin.php
index eae24bb..9a0f18e 100644
--- a/special/SpecialOATHLogin.php
+++ b/special/SpecialOATHLogin.php
@@ -65,7 +65,8 @@
                                'default' => '',
                                'label-message' => 'oathauth-entertoken',
                                'name' => 'token',
-                               'required' => true
+                               'required' => true,
+                               'autofocus' => true,
                        ],
                        'returnto' => [
                                'type' => 'hidden',

-- 
To view, visit https://gerrit.wikimedia.org/r/321990
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6b41cc763156b48d8e35fb6829f70f0eb01e5511
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
Gerrit-Reviewer: GergÅ‘ Tisza <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to