TheDJ has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/328152 )

Change subject: The direction of token field should be ltr
......................................................................

The direction of token field should be ltr

Before it was shown in RTL in RTL wikis. The code is always a six digit
number or a scratch code in Latin (English) characters.
This textbox should thus never be RTL.

Bug: T153556
Change-Id: Idaa3f1a54e749929e0779e7478fca2896f5d5f0b
---
M OATHAuth.hooks.php
M special/SpecialOATHDisable.php
M special/SpecialOATHEnable.php
M special/SpecialOATHLogin.php
4 files changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OATHAuth 
refs/changes/52/328152/1

diff --git a/OATHAuth.hooks.php b/OATHAuth.hooks.php
index 8718224..331373f 100644
--- a/OATHAuth.hooks.php
+++ b/OATHAuth.hooks.php
@@ -45,6 +45,7 @@
                                'cssClass' => 'loginText',
                                'id' => 'wpOATHToken',
                                'size' => 20,
+                               'dir' => 'ltr',
                                'autofocus' => true,
                                'persistent' => false,
                                'autocomplete' => false,
diff --git a/special/SpecialOATHDisable.php b/special/SpecialOATHDisable.php
index d177867..14d9449 100644
--- a/special/SpecialOATHDisable.php
+++ b/special/SpecialOATHDisable.php
@@ -75,6 +75,7 @@
                                'type' => 'text',
                                'label-message' => 'oathauth-entertoken',
                                'name' => 'token',
+                               'dir' => 'ltr',
                                'required' => true,
                                'autofocus' => true,
                        ],
diff --git a/special/SpecialOATHEnable.php b/special/SpecialOATHEnable.php
index 7318d6a..6217c18 100644
--- a/special/SpecialOATHEnable.php
+++ b/special/SpecialOATHEnable.php
@@ -135,6 +135,7 @@
                                'label-message' => 'oathauth-entertoken',
                                'name' => 'token',
                                'section' => 'step4',
+                               'dir' => 'ltr',
                        ],
                        'returnto' => [
                                'type' => 'hidden',
diff --git a/special/SpecialOATHLogin.php b/special/SpecialOATHLogin.php
index 9a0f18e..4d04c4d 100644
--- a/special/SpecialOATHLogin.php
+++ b/special/SpecialOATHLogin.php
@@ -65,6 +65,7 @@
                                'default' => '',
                                'label-message' => 'oathauth-entertoken',
                                'name' => 'token',
+                               'dir' => 'ltr',
                                'required' => true,
                                'autofocus' => true,
                        ],

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idaa3f1a54e749929e0779e7478fca2896f5d5f0b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: TheDJ <hartman.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to