Index: trunk/extensions/MoodBar/DashboardForms.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | $output = $wgOut->getHTML(); |
31 | 31 | $wgOut->clearHTML( ); |
32 | 32 | $wgOut->addHTML( $oldText ); |
33 | | - |
| 33 | + |
34 | 34 | if ( $result === true ) { |
35 | 35 | return true; |
36 | 36 | } |
Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
— | — | @@ -155,6 +155,7 @@ |
156 | 156 | 'moodbar-log-name' => 'Feedback log', |
157 | 157 | 'moodbar-log-header' => 'This is the log of actions taken on feedback items listed on the [[Special:FeedbackDashboard|feedback dashboard]].', |
158 | 158 | 'moodbar-log-hide' => 'hid [[$1]]', |
| 159 | + 'moodbar-log-feedback' => 'MoodBar Feedback [[$1]]', |
159 | 160 | 'moodbar-log-restore' => 'restored the visibility for [[$1]]', |
160 | 161 | //Feedback Response |
161 | 162 | 'moodbar-response-terms' => 'By submitting, you agree to transparency under these $1.', |
— | — | @@ -316,6 +317,7 @@ |
317 | 318 | 'moodbar-type-sad' => '$1 is the username that can be used for GENDER. Message is used on Special:FeedbackDashboard.', |
318 | 319 | 'moodbar-type-confused' => '$1 is the username that can be used for GENDER. Message is used on Special:FeedbackDashboard.', |
319 | 320 | 'moodbar-type-stats' => 'The stats for Moodbar feedback in the last 24 hours, $1 is the number of Happy, $2 is the number of Sad, $3 is the number of Confused', |
| 321 | + |
320 | 322 | 'moodbar-user-ip' => '{{Identical|IP Address}}', |
321 | 323 | 'moodbar-response-terms' => 'Text of the user license agreement. Parameters: |
322 | 324 | * $1 {{msg-mw|moodbar-response-link}}', |
— | — | @@ -323,6 +325,13 @@ |
324 | 326 | 'moodbar-response-url' => '{{Optional}} |
325 | 327 | |
326 | 328 | Terms of use URL. Do not change this URL until a translation of the page itself exists.', |
| 329 | + // Log types |
| 330 | + 'moodbar-log-name' => 'Feedback log name', |
| 331 | + 'moodbar-log-header' => 'Descriptive header text for Feedback log page.', |
| 332 | + 'moodbar-log-hide' => 'Log Action text for hiding feedback [[$1]] is link to feedback item', |
| 333 | + 'moodbar-log-feedback' => 'Log Action text for leaving feedback [[$1]] is link to feedback item', |
| 334 | + 'moodbar-log-restore' => 'Log Action text for restoring feedback [[$1]] is link to feedback item', |
| 335 | + //Feedback Dashboard Response |
327 | 336 | 'response-back-text' => 'Text for response preview back button', |
328 | 337 | 'response-preview-text' => 'Text for preview response preview button', |
329 | 338 | 'response-ajax-action-head' => 'Text for ajax status heading while request is being made', |
Index: trunk/extensions/MoodBar/ApiMoodBar.php |
— | — | @@ -29,8 +29,19 @@ |
30 | 30 | |
31 | 31 | $result = array( 'result' => 'success' ); |
32 | 32 | $this->getResult()->addValue( null, $this->getModuleName(), $result ); |
| 33 | + |
| 34 | + //add feedback log in recent changes |
| 35 | + $this->logFeedback($params, $item->getProperty( 'id' )); |
33 | 36 | } |
34 | 37 | |
| 38 | + public function logFeedback( $params, $itemId ) { |
| 39 | + $title = SpecialPage::getTitleFor( 'FeedbackDashboard', $itemId); |
| 40 | + $reason = $params['type'] . ': ' . $params['comment']; |
| 41 | + $log = new LogPage( 'moodbar' ); |
| 42 | + $log->addEntry( 'feedback', $title, $reason ); |
| 43 | + |
| 44 | + } |
| 45 | + |
35 | 46 | public function needsToken() { |
36 | 47 | return true; |
37 | 48 | } |
Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.css |
— | — | @@ -167,6 +167,7 @@ |
168 | 168 | min-height: 20em; |
169 | 169 | list-style: none; |
170 | 170 | list-style-image: none; /* ie 7 fix */ |
| 171 | + min-height: 500px; |
171 | 172 | } |
172 | 173 | |
173 | 174 | .client-nojs #fbd-list-more { |
Index: trunk/extensions/MoodBar/MoodBar.php |
— | — | @@ -63,6 +63,7 @@ |
64 | 64 | $wgLogActions += array( |
65 | 65 | 'moodbar/hide' => 'moodbar-log-hide', |
66 | 66 | 'moodbar/restore' => 'moodbar-log-restore', |
| 67 | + 'moodbar/feedback' => 'moodbar-log-feedback' |
67 | 68 | ); |
68 | 69 | |
69 | 70 | // Jobs |