Index: trunk/extensions/MoodBar/MoodBar.i18n.php |
— | — | @@ -167,6 +167,7 @@ |
168 | 168 | 'response-ajax-success-body' => 'Your response has been added.', |
169 | 169 | 'response-ajax-error-head' => 'Oops!', |
170 | 170 | 'response-ajax-error-body' => 'There was an error adding your response. <br />Please try again later.', |
| 171 | + 'response-concurrency-notification' => 'Someone has recently started responding to this feedback.', |
171 | 172 | //Email notification |
172 | 173 | 'moodbar-enotif-subject' => '$1 responded to your feedback', |
173 | 174 | |
— | — | @@ -328,6 +329,7 @@ |
329 | 330 | 'response-ajax-success-body' => 'Text for ajax status body on successful response (can be html)', |
330 | 331 | 'response-ajax-error-head' => 'Text for ajax status heading on error', |
331 | 332 | 'response-ajax-error-body' => 'Text for ajax status body on error (can be html)', |
| 333 | + 'response-concurrency-notification' => 'Warning text explaining that another user has initiated a response to this feedback.', |
332 | 334 | 'moodbar-enotif-subject' => 'Feedback response email subject', |
333 | 335 | 'moodbar-enotif-body' => 'Feedback response email body, $1 is the commenter name, $2 is the link to the feedback of commenter, $3 is the responder talk page, $4 is the response text, $5 is commenter talk page', |
334 | 336 | ); |
Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.css |
— | — | @@ -87,6 +87,24 @@ |
88 | 88 | margin: 1em 0 0 0; |
89 | 89 | } |
90 | 90 | |
| 91 | +/* Leader Board */ |
| 92 | +.fbd-leaderboard { |
| 93 | + margin: 0; |
| 94 | + padding: 0; |
| 95 | + list-style: none; |
| 96 | +} |
| 97 | +.fbd-leaderboard li{ |
| 98 | + margin: 0px; |
| 99 | + padding: 2px 5px; |
| 100 | + list-style: none; |
| 101 | +} |
| 102 | + |
| 103 | +.fbd-leaderboard li span { |
| 104 | + float:right; |
| 105 | + color: #777777; |
| 106 | + font-weight: bold; |
| 107 | +} |
| 108 | + |
91 | 109 | /* Tool Tip */ |
92 | 110 | |
93 | 111 | .fbd-tooltip-overlay-wrap { |
Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -509,6 +509,8 @@ |
510 | 510 | wikitext = wikitext.replace(/~{3,5}/g, '') + "\n\n~~~~"; //remove and add signature for |
511 | 511 | parseWikiText($item, wikitext); |
512 | 512 | }); |
| 513 | + //var $responseItem = $item.find('.fbd-item-response') ; |
| 514 | + //loadToolTip($responseItem); |
513 | 515 | } |
514 | 516 | e.preventDefault(); |
515 | 517 | } |
— | — | @@ -596,9 +598,8 @@ |
597 | 599 | } |
598 | 600 | /* Display tooltip for response concurrency notification |
599 | 601 | * @param $item Feedback item |
600 | | - * @param msg Message to display in tooltip |
601 | 602 | */ |
602 | | - function loadToolTip($item, msg) { |
| 603 | + function loadToolTip($item) { |
603 | 604 | var tooltip = $('<div>').attr('class', 'fbd-tooltip-overlay-wrap') |
604 | 605 | .append( |
605 | 606 | $('<div>').attr('class', 'fbd-tooltip-overlay') |
— | — | @@ -606,7 +607,7 @@ |
607 | 608 | $('<div>').attr('class', 'fbd-tooltip-pointy') |
608 | 609 | ).append( |
609 | 610 | $('<div>').attr('class', 'fbd-tooltip-title') |
610 | | - .text( msg ) |
| 611 | + .text( mw.msg( 'response-concurrency-notification' ) ) |
611 | 612 | .prepend( |
612 | 613 | $('<span>').attr('class', 'fbd-tooltip-close').text('X') |
613 | 614 | ) |
— | — | @@ -719,7 +720,6 @@ |
720 | 721 | $( 'input[type=checkbox].fbd-filters-check').prop('checked', false); |
721 | 722 | $(this).prop('checked', true); |
722 | 723 | } |
723 | | - |
724 | 724 | }); |
725 | 725 | |
726 | 726 | $( '#fbd-list' ).delegate( '.fbd-item', 'hover', function (){ |
Index: trunk/extensions/MoodBar/MoodBar.php |
— | — | @@ -220,6 +220,7 @@ |
221 | 221 | 'response-ajax-success-body', |
222 | 222 | 'response-ajax-error-head', |
223 | 223 | 'response-ajax-error-body', |
| 224 | + 'response-concurrency-notification', |
224 | 225 | ), |
225 | 226 | ); |
226 | 227 | |