Index: trunk/extensions/Storyboard/storyboard.css |
— | — | @@ -64,11 +64,15 @@ |
65 | 65 | float: right; |
66 | 66 | } |
67 | 67 | |
| 68 | +.validationerror { |
| 69 | + color: red; |
| 70 | +} |
| 71 | + |
68 | 72 | /** |
69 | 73 | * Css for <storyboard> tags |
70 | 74 | */ |
71 | 75 | .storyboard { |
72 | | -border: 1px solid #ddd; |
| 76 | + border: 1px solid #ddd; |
73 | 77 | } |
74 | 78 | .storyboard .storyboard-batch { |
75 | 79 | margin: 0; |
Index: trunk/extensions/Storyboard/tags/Storysubmission/Storysubmission_body.php |
— | — | @@ -27,8 +27,6 @@ |
28 | 28 | * @param $frame |
29 | 29 | * |
30 | 30 | * @return array |
31 | | - * |
32 | | - * FIXME: the submission broke somehow |
33 | 31 | */ |
34 | 32 | public static function render( $input, array $args, Parser $parser, $frame ) { |
35 | 33 | wfProfileIn( __METHOD__ ); |
— | — | @@ -213,15 +211,13 @@ |
214 | 212 | |
215 | 213 | $formBody .= Html::hidden( 'lang', $args['language'] ); |
216 | 214 | |
217 | | - $submissionUrl = SpecialPage::getTitleFor( 'StorySubmission' )->getFullURL(); |
218 | | - |
219 | 215 | return Html::rawElement( |
220 | 216 | 'form', |
221 | 217 | array( |
222 | 218 | 'id' => 'storyform', |
223 | 219 | 'name' => 'storyform', |
224 | 220 | 'method' => 'post', |
225 | | - 'action' => $submissionUrl, |
| 221 | + 'action' => SpecialPage::getTitleFor( 'StorySubmission' )->getFullURL(), |
226 | 222 | 'onsubmit' => 'return stbValidateSubmission( "storyboard-agreement" );' |
227 | 223 | ), |
228 | 224 | $formBody |
Index: trunk/extensions/Storyboard/specials/StorySubmission/StorySubmission_body.php |
— | — | @@ -83,7 +83,11 @@ |
84 | 84 | $wgOut->setPageTitle( wfMsg( 'storyboard-submissionincomplete' ) ); |
85 | 85 | |
86 | 86 | $wgOut->addWikiMsg( 'storyboard-alreadyexists', $title, $wgTitle->getFullURL() ); |
87 | | - $wgOut->addHtml( '<a href="#" onclick="history.go(-1); return false;">' . wfMsg( 'storyboard-changetitle' ) . '</a>' ); |
| 87 | + |
| 88 | + // Let's not give a null link to people with no JS. |
| 89 | + // TODO: change this to the last page somehow |
| 90 | + $fallBackUrl = Title::newMainPage()->getFullURL(); |
| 91 | + $wgOut->addHtml( "<a href='$fallBackUrl' onclick='history.go(-1); return false;'>" . wfMsg( 'storyboard-changetitle' ) . '</a>' ); |
88 | 92 | } |
89 | 93 | } |
90 | 94 | |