Index: trunk/extensions/ArticleFeedback/ArticleFeedback.hooks.php |
— | — | @@ -62,7 +62,8 @@ |
63 | 63 | 'articlefeedback-pitch-edit-accept', |
64 | 64 | 'articlefeedback-survey-title', |
65 | 65 | 'articlefeedback-survey-message-success', |
66 | | - 'articlefeedback-survey-message-error', |
| 66 | + 'articlefeedback-survey-message-error', |
| 67 | + 'articlefeedback-survey-disclaimer' |
67 | 68 | ), |
68 | 69 | 'dependencies' => array( |
69 | 70 | 'jquery.ui.dialog', |
Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js |
— | — | @@ -114,6 +114,10 @@ |
115 | 115 | .insertAfter( $input ); |
116 | 116 | $input.remove(); |
117 | 117 | $form.find( '#prefswitch-survey-origin' ).text( mw.config.get( 'wgTitle' ) ); |
| 118 | + |
| 119 | + // Insert disclaimer message |
| 120 | + $button.before( $( '<div>' ).addClass( 'articleFeedback-survey-disclaimer' ).text( mw.msg( 'articlefeedback-survey-disclaimer' ) ) ); |
| 121 | + |
118 | 122 | // Take dialog out of loading state |
119 | 123 | $dialog.removeClass( 'loading' ); |
120 | 124 | } ); |
Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.css |
— | — | @@ -4,4 +4,9 @@ |
5 | 5 | #articleFeedback-dialog { |
6 | 6 | padding: 2em; |
7 | 7 | padding-top: 1em; |
8 | | -} |
\ No newline at end of file |
| 8 | +} |
| 9 | + |
| 10 | +.articleFeedback-survey-disclaimer { |
| 11 | + font-weight: normal; /* Override bold */ |
| 12 | + font-style: italic; |
| 13 | +} |
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.i18n.php |
— | — | @@ -26,6 +26,7 @@ |
27 | 27 | 'articlefeedback-survey-submit' => 'Submit', |
28 | 28 | 'articlefeedback-survey-title' => 'Please answer a few questions', |
29 | 29 | 'articlefeedback-survey-thanks' => 'Thanks for filling out the survey.', |
| 30 | + 'articlefeedback-survey-disclaimer' => 'To help improve this feature, your feedback may be shared anonymously with the Wikipedia community.', |
30 | 31 | /* ext.articleFeedback and jquery.articleFeedback */ |
31 | 32 | 'articlefeedback-error' => 'An error has occured. Please try again later.', |
32 | 33 | 'articlefeedback-form-switch-label' => 'Rate this page', |
— | — | @@ -167,6 +168,7 @@ |
168 | 169 | {{Identical|Submit}}', |
169 | 170 | 'articlefeedback-survey-title' => 'This text appears in the title bar of the survey dialog.', |
170 | 171 | 'articlefeedback-survey-thanks' => 'This text appears when the user has successfully submitted the survey.', |
| 172 | + 'articlefeedback-survey-disclaimer' => 'This text appears on the survey form below the comment field and above the submit button.', |
171 | 173 | 'articlefeedback-form-panel-explanation-link' => 'Do not translate "Project:". Also translate the "ArticleFeedback" special page name at [[Special:AdvancedTranslate]].', |
172 | 174 | 'articlefeedback-form-panel-helpimprove-email-placeholder' => '{{Optional}}', |
173 | 175 | 'articlefeedback-form-panel-helpimprove-privacy' => '{{Identical|Privacy}}', |