Index: trunk/extensions/Survey/specials/SpecialSurvey.php |
— | — | @@ -246,6 +246,15 @@ |
247 | 247 | $form = new HTMLForm( $fields ); |
248 | 248 | } |
249 | 249 | |
| 250 | + $form->addButton( |
| 251 | + 'cancelEdit', |
| 252 | + wfMsg( 'cancel' ), |
| 253 | + 'cancelEdit', |
| 254 | + array( |
| 255 | + 'onclick' => 'window.location="' . SpecialPage::getTitleFor( 'Surveys' )->getFullURL() . '";return false;' |
| 256 | + ) |
| 257 | + ); |
| 258 | + |
250 | 259 | $form->show(); |
251 | 260 | } |
252 | 261 | |
Index: trunk/extensions/Survey/includes/Survey.class.php |
— | — | @@ -59,9 +59,9 @@ |
60 | 60 | return array( |
61 | 61 | 'name' => '', |
62 | 62 | 'enabled' => '0', |
63 | | - 'header' => '', |
| 63 | + 'header' => 'Thank you for taking this short survey. Please fill out the following questions:', |
64 | 64 | 'footer' => '', |
65 | | - 'thanks' => '', |
| 65 | + 'thanks' => 'Thank you for your responses.', |
66 | 66 | 'user_type' => self::$USER_ALL, |
67 | 67 | 'namespaces' => array(), |
68 | 68 | ); |
Index: trunk/extensions/Survey/resources/ext.survey.special.survey.js |
— | — | @@ -153,6 +153,8 @@ |
154 | 154 | } ); |
155 | 155 | |
156 | 156 | $( '.mw-htmlform-submit' ).button(); |
| 157 | + $( '#cancelEdit' ).button(); |
| 158 | + |
157 | 159 | }; |
158 | 160 | |
159 | 161 | setup(); |