Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | 'moodbar-loading-title' => 'Sharing...', |
49 | 49 | 'moodbar-success-title' => 'Thanks!', |
50 | 50 | 'moodbar-error-title' => 'Oops!', |
51 | | - 'moodbar-loading-subtitle' => 'We are sharing your feedback.', |
| 51 | + 'moodbar-loading-subtitle' => 'We are sharing your feedback…', |
52 | 52 | 'moodbar-success-subtitle' => 'Sharing your mood helps us make Wikipedia better.', |
53 | 53 | 'moodbar-error-subtitle' => 'Something went wrong! Please try sharing your mood again later.', |
54 | 54 | // Special:MoodBar |
Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js |
— | — | @@ -85,8 +85,11 @@ |
86 | 86 | callback: function( data ) { |
87 | 87 | if ( data && data.moodbar && data.moodbar.result === 'success' ) { |
88 | 88 | mb.swapContent( mb.tpl.success ); |
| 89 | + setTimeout( function() { |
| 90 | + mb.ui.overlay.fadeOut(); |
| 91 | + }, 3000 ); |
89 | 92 | } else { |
90 | | - mb.swapContent( '.mw-moodBar-overlayContent' ); |
| 93 | + mb.swapContent( mb.tpl.error ); |
91 | 94 | } |
92 | 95 | } |
93 | 96 | }, |