r92826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92825‎ | r92826 | r92827 >
Date:23:30, 21 July 2011
Author:werdna
Status:deferred
Tags:
Comment:
MoodBar: Hide automatically after 3 seconds, add an ellipsis
Modified paths:
  • /trunk/extensions/MoodBar/MoodBar.i18n.php (modified) (history)
  • /trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/MoodBar.i18n.php
@@ -47,7 +47,7 @@
4848 'moodbar-loading-title' => 'Sharing...',
4949 'moodbar-success-title' => 'Thanks!',
5050 'moodbar-error-title' => 'Oops!',
51 - 'moodbar-loading-subtitle' => 'We are sharing your feedback.',
 51+ 'moodbar-loading-subtitle' => 'We are sharing your feedback…',
5252 'moodbar-success-subtitle' => 'Sharing your mood helps us make Wikipedia better.',
5353 'moodbar-error-subtitle' => 'Something went wrong! Please try sharing your mood again later.',
5454 // Special:MoodBar
Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.core.js
@@ -85,8 +85,11 @@
8686 callback: function( data ) {
8787 if ( data && data.moodbar && data.moodbar.result === 'success' ) {
8888 mb.swapContent( mb.tpl.success );
 89+ setTimeout( function() {
 90+ mb.ui.overlay.fadeOut();
 91+ }, 3000 );
8992 } else {
90 - mb.swapContent( '.mw-moodBar-overlayContent' );
 93+ mb.swapContent( mb.tpl.error );
9194 }
9295 }
9396 },

Follow-up revisions

RevisionCommit summaryAuthorDate
r96115MFT r92826-r96114 for form changesawjrichards16:05, 2 September 2011

Status & tagging log