Index: trunk/extensions/ConfirmEdit/MathCaptcha.class.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | $index = $this->storeCaptcha( array( 'answer' => $answer ) ); |
24 | 24 | |
25 | 25 | $form = '<table><tr><td>' . $this->fetchMath( $sum ) . '</td>'; |
26 | | - $form .= '<td>' . Xml::input( 'wpCaptchaWord', false, false, array( 'tabindex' => '1' ) ) . '</td></tr></table>'; |
| 26 | + $form .= '<td>' . Html::input( 'wpCaptchaWord', false, false, array( 'tabindex' => '1', 'required' ) ) . '</td></tr></table>'; |
27 | 27 | $form .= Html::hidden( 'wpCaptchaId', $index ); |
28 | 28 | return $form; |
29 | 29 | } |
Index: trunk/extensions/ConfirmEdit/QuestyCaptcha.class.php |
— | — | @@ -40,9 +40,10 @@ |
41 | 41 | } |
42 | 42 | $index = $this->storeCaptcha( $captcha ); |
43 | 43 | return "<p><label for=\"wpCaptchaWord\">{$captcha['question']}</label> " . |
44 | | - Xml::element( 'input', array( |
| 44 | + Html::element( 'input', array( |
45 | 45 | 'name' => 'wpCaptchaWord', |
46 | 46 | 'id' => 'wpCaptchaWord', |
| 47 | + 'required', |
47 | 48 | 'tabindex' => 1 ) ) . // tab in before the edit textarea |
48 | 49 | "</p>\n" . |
49 | 50 | Xml::element( 'input', array( |
Index: trunk/extensions/ConfirmEdit/FancyCaptcha.class.php |
— | — | @@ -69,9 +69,10 @@ |
70 | 70 | 'id' => 'wpCaptchaId', |
71 | 71 | 'value' => $index ) ) . |
72 | 72 | "<p>" . |
73 | | - Xml::element( 'input', array( |
| 73 | + Html::element( 'input', array( |
74 | 74 | 'name' => 'wpCaptchaWord', |
75 | 75 | 'id' => 'wpCaptchaWord', |
| 76 | + 'required', |
76 | 77 | 'tabindex' => 1 ) ) . // tab in before the edit textarea |
77 | 78 | "</p>\n"; |
78 | 79 | } |