Index: trunk/extensions/StyleGuideDemo/modules/ext.styleguidedemo/images/MW-StyleGuide-Form-Button-BGShadeActive.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/extensions/StyleGuideDemo/modules/ext.styleguidedemo/images/MW-StyleGuide-Form-Button-BGShadeActive.png |
___________________________________________________________________ |
Added: svn:mime-type |
1 | 1 | + image/png |
Index: trunk/extensions/StyleGuideDemo/modules/ext.styleguidedemo/ext.styleguidedemo.css |
— | — | @@ -7,8 +7,7 @@ |
8 | 8 | |
9 | 9 | .mw-htmlform-form { |
10 | 10 | padding: 10px; |
11 | | - float: left; |
12 | | - max-width: 70%; |
| 11 | + width: 450px; |
13 | 12 | } |
14 | 13 | |
15 | 14 | .mw-htmlform-errors { |
Index: trunk/extensions/StyleGuideDemo/modules/ext.styleguidedemo/ext.styleguidedemo.js |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | var $realButton = $( button ), |
23 | 23 | $styleButton = $( '<div>', { |
24 | 24 | 'class': 'mw-htmlform-button', |
25 | | - text: 'Share Mood'//$realButton.val() |
| 25 | + text: $realButton.val() |
26 | 26 | }) |
27 | 27 | .insertAfter( $realButton.hide() ) |
28 | 28 | .wrap( |
Index: trunk/extensions/StyleGuideDemo/SpecialStyleGuideDemo.php |
— | — | @@ -17,7 +17,10 @@ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut; |
20 | 20 | |
| 21 | + // Loads styles when javascript is disabled as well |
21 | 22 | $wgOut->addModuleStyles( 'ext.styleguidedemo.css' ); |
| 23 | + |
| 24 | + // Enhancements |
22 | 25 | $wgOut->addModules( 'ext.styleguidedemo.js' ); |
23 | 26 | |
24 | 27 | $this->setHeaders(); |
— | — | @@ -28,7 +31,7 @@ |
29 | 32 | $formOne = array( |
30 | 33 | 'Username' => array( |
31 | 34 | 'label-message' => 'styleguidedemo-username', |
32 | | - 'required' => 1, |
| 35 | + 'required' => true, |
33 | 36 | 'type' => 'text', |
34 | 37 | 'help-message' => array( 'styleguidedemo-username-help', wfMsg( 'styleguidedemo-username-infopage' ) ), |
35 | 38 | 'hint-message' => 'styleguidedemo-username-hint', |
— | — | @@ -36,12 +39,13 @@ |
37 | 40 | ), |
38 | 41 | 'Password' => array( |
39 | 42 | 'label-message' => 'styleguidedemo-password', |
40 | | - 'required' => 1, |
| 43 | + 'required' => true, |
41 | 44 | 'type' => 'password', |
42 | 45 | 'help-message' => array( 'styleguidedemo-password-help', wfMsg( 'styleguidedemo-password-infopage' ) ), |
43 | 46 | ), |
44 | 47 | 'ConfirmPassword' => array( |
45 | 48 | 'label-message' => 'styleguidedemo-confirmpassword', |
| 49 | + 'required' => true, |
46 | 50 | 'type' => 'password', |
47 | 51 | 'help-message' => 'styleguidedemo-confirmpassword-help', |
48 | 52 | ), |
— | — | @@ -55,6 +59,9 @@ |
56 | 60 | ); |
57 | 61 | $form = new HTMLStyleForm( $formOne ); |
58 | 62 | $form->setTitle( $wgOut->getTitle() ); |
| 63 | + $form->setSubmitID( 'wpCreateaccount' ); |
| 64 | + $form->setSubmitName( 'wpCreateaccount' ); |
| 65 | + $form->setSubmitText( wfMsg( 'createaccount' ) ); |
59 | 66 | $form->show(); |
60 | 67 | |
61 | 68 | |