mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-12 01:11:15 +00:00
Make captchas use mw-ui-input when available
Change-Id: I44453a2cc238721468565403b9625039cb8742ef
This commit is contained in:
parent
751ef41001
commit
5d6f684da3
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue