Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js |
— | — | @@ -109,6 +109,7 @@ |
110 | 110 | .button() |
111 | 111 | .insertAfter( $input ); |
112 | 112 | $input.remove(); |
| 113 | + $form.find( '#prefswitch-survey-origin' ).text( mw.config.get( 'wgTitle' ) ); |
113 | 114 | // Take dialog out of loading state |
114 | 115 | $dialog.removeClass( 'loading' ); |
115 | 116 | } ); |
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.i18n.php |
— | — | @@ -11,6 +11,7 @@ |
12 | 12 | 'articlefeedback' => 'Article feedback', |
13 | 13 | 'articlefeedback-desc' => 'Article feedback', |
14 | 14 | /* Survey Messages */ |
| 15 | + 'articlefeedback-survey-question-origin' => 'What page were you on when you started this survey?', |
15 | 16 | 'articlefeedback-survey-question-whyrated' => 'Please let us know why you rated this page today (check all that apply):', |
16 | 17 | 'articlefeedback-survey-answer-whyrated-contribute-rating' => 'I wanted to contribute to the overall rating of the page', |
17 | 18 | 'articlefeedback-survey-answer-whyrated-development' => 'I hope that my rating would positively affect the development of the page', |
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.php |
— | — | @@ -40,6 +40,11 @@ |
41 | 41 | 'updatable' => false, |
42 | 42 | 'submit-msg' => 'articlefeedback-survey-submit', |
43 | 43 | 'questions' => array( |
| 44 | + 'origin' => array( |
| 45 | + 'visibility' => 'hidden', |
| 46 | + 'question' => 'articlefeedback-survey-question-origin', |
| 47 | + 'type' => 'text', |
| 48 | + ), |
44 | 49 | 'whyrated' => array( |
45 | 50 | 'question' => 'articlefeedback-survey-question-whyrated', |
46 | 51 | 'type' => 'checks', |