Make captchas use mw-ui-input when available

Change-Id: I44453a2cc238721468565403b9625039cb8742ef
This commit is contained in:
jdlrobson 2014-07-29 18:39:22 -07:00
parent 751ef41001
commit 5d6f684da3
3 changed files with 3 additions and 0 deletions

View file

@ -41,6 +41,7 @@ class SimpleCaptcha {
return "<p><label for=\"wpCaptchaWord\">{$captcha['question']} = </label>" .
Xml::element( 'input', array(
'name' => 'wpCaptchaWord',
'class' => 'mw-ui-input',
'id' => 'wpCaptchaWord',
'size' => 5,
'autocomplete' => 'off',

View file

@ -130,6 +130,7 @@ class FancyCaptcha extends SimpleCaptcha {
) .
Html::element( 'input', array(
'name' => 'wpCaptchaWord',
'class' => 'mw-ui-input',
'id' => 'wpCaptchaWord',
'type' => 'text',
'size' => '12', // max_length in captcha.py plus fudge factor

View file

@ -43,6 +43,7 @@ class QuestyCaptcha extends SimpleCaptcha {
Html::element( 'input', array(
'name' => 'wpCaptchaWord',
'id' => 'wpCaptchaWord',
'class' => 'mw-ui-input',
'required',
'autocomplete' => 'off',
'tabindex' => 1 ) ) . // tab in before the edit textarea