https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108286
Revision: 108286
Author: rmoen
Date: 2012-01-06 22:07:45 +0000 (Fri, 06 Jan 2012)
Log Message:
-----------
added feedback dashboard leaderboard base styles and concurrency message to
languge file
Modified Paths:
--------------
trunk/extensions/MoodBar/MoodBar.i18n.php
trunk/extensions/MoodBar/MoodBar.php
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.css
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js
Modified: trunk/extensions/MoodBar/MoodBar.i18n.php
===================================================================
--- trunk/extensions/MoodBar/MoodBar.i18n.php 2012-01-06 22:02:38 UTC (rev
108285)
+++ trunk/extensions/MoodBar/MoodBar.i18n.php 2012-01-06 22:07:45 UTC (rev
108286)
@@ -167,6 +167,7 @@
'response-ajax-success-body' => 'Your response has been added.',
'response-ajax-error-head' => 'Oops!',
'response-ajax-error-body' => 'There was an error adding your response.
<br />Please try again later.',
+ 'response-concurrency-notification' => 'Someone has recently started
responding to this feedback.',
//Email notification
'moodbar-enotif-subject' => '$1 responded to your feedback',
@@ -328,6 +329,7 @@
'response-ajax-success-body' => 'Text for ajax status body on
successful response (can be html)',
'response-ajax-error-head' => 'Text for ajax status heading on error',
'response-ajax-error-body' => 'Text for ajax status body on error (can
be html)',
+ 'response-concurrency-notification' => 'Warning text explaining that
another user has initiated a response to this feedback.',
'moodbar-enotif-subject' => 'Feedback response email subject',
'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',
);
Modified: trunk/extensions/MoodBar/MoodBar.php
===================================================================
--- trunk/extensions/MoodBar/MoodBar.php 2012-01-06 22:02:38 UTC (rev
108285)
+++ trunk/extensions/MoodBar/MoodBar.php 2012-01-06 22:07:45 UTC (rev
108286)
@@ -220,6 +220,7 @@
'response-ajax-success-body',
'response-ajax-error-head',
'response-ajax-error-body',
+ 'response-concurrency-notification',
),
);
Modified:
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.css
===================================================================
---
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.css
2012-01-06 22:02:38 UTC (rev 108285)
+++
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.css
2012-01-06 22:07:45 UTC (rev 108286)
@@ -87,6 +87,24 @@
margin: 1em 0 0 0;
}
+/* Leader Board */
+.fbd-leaderboard {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+.fbd-leaderboard li{
+ margin: 0px;
+ padding: 2px 5px;
+ list-style: none;
+}
+
+.fbd-leaderboard li span {
+ float:right;
+ color: #777777;
+ font-weight: bold;
+}
+
/* Tool Tip */
.fbd-tooltip-overlay-wrap {
Modified:
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js
===================================================================
---
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js
2012-01-06 22:02:38 UTC (rev 108285)
+++
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js
2012-01-06 22:07:45 UTC (rev 108286)
@@ -509,6 +509,8 @@
wikitext = wikitext.replace(/~{3,5}/g,
'') + "\n\n~~~~"; //remove and add signature for
parseWikiText($item, wikitext);
});
+ //var $responseItem =
$item.find('.fbd-item-response') ;
+ //loadToolTip($responseItem);
}
e.preventDefault();
}
@@ -596,9 +598,8 @@
}
/* Display tooltip for response concurrency notification
* @param $item Feedback item
- * @param msg Message to display in tooltip
*/
- function loadToolTip($item, msg) {
+ function loadToolTip($item) {
var tooltip = $('<div>').attr('class',
'fbd-tooltip-overlay-wrap')
.append(
$('<div>').attr('class',
'fbd-tooltip-overlay')
@@ -606,7 +607,7 @@
$('<div>').attr('class', 'fbd-tooltip-pointy')
).append(
$('<div>').attr('class', 'fbd-tooltip-title')
- .text( msg )
+ .text( mw.msg(
'response-concurrency-notification' ) )
.prepend(
$('<span>').attr('class', 'fbd-tooltip-close').text('X')
)
@@ -719,7 +720,6 @@
$(
'input[type=checkbox].fbd-filters-check').prop('checked', false);
$(this).prop('checked', true);
}
-
});
$( '#fbd-list' ).delegate( '.fbd-item', 'hover', function (){
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs