https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108299
Revision: 108299
Author: rmoen
Date: 2012-01-07 01:20:58 +0000 (Sat, 07 Jan 2012)
Log Message:
-----------
adjust styles and elements to top responders, fix bug with secondary filter
types selection in feedback dashboard
Modified Paths:
--------------
trunk/extensions/MoodBar/SpecialFeedbackDashboard.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/SpecialFeedbackDashboard.php
===================================================================
--- trunk/extensions/MoodBar/SpecialFeedbackDashboard.php 2012-01-07
01:01:14 UTC (rev 108298)
+++ trunk/extensions/MoodBar/SpecialFeedbackDashboard.php 2012-01-07
01:20:58 UTC (rev 108299)
@@ -287,8 +287,7 @@
return <<<HTML
<div class="fbd-leaderboard-top-responders">
- $topRespondersTitle
- <hr />
+ <h5>$topRespondersTitle</h5>
<ul class="fbd-leaderboard">
$html
</ul>
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-07 01:01:14 UTC (rev 108298)
+++
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.css
2012-01-07 01:20:58 UTC (rev 108299)
@@ -95,16 +95,28 @@
}
.fbd-leaderboard li{
margin: 0px;
- padding: 2px 5px;
+ padding: 2px 10px;
list-style: none;
+ font-weight:600;
}
+.fbd-leaderboard li.even {
+ background: #EFEFEF;
+}
.fbd-leaderboard li span {
float:right;
color: #777777;
- font-weight: bold;
}
+.fbd-leaderboard-top-responders {
+ margin-top:15px;
+}
+
+.fbd-leaderboard-top-responders h5 {
+ border-bottom:1px solid #000000;
+ padding-bottom:0px;
+}
+
/* 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-07 01:01:14 UTC (rev 108298)
+++
trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js
2012-01-07 01:20:58 UTC (rev 108299)
@@ -715,10 +715,12 @@
//only allow one of the secondary filters to be checked
$( 'input[type=checkbox].fbd-filters-check').click(function(){
- var count = $( 'input[type=checkbox].fbd-filters-check').length;
+ var count = $(
'input[type=checkbox].fbd-filters-check').length,
+ state = $(this).prop('checked'); //save state
of checkbox
+
if(count > 1) {
$(
'input[type=checkbox].fbd-filters-check').prop('checked', false);
- $(this).prop('checked', true);
+ $(this).prop('checked', state);
}
});
@@ -730,6 +732,9 @@
$(this).removeClass('fbd-hover');
});
+ //zebra stripe leaderboard
+ $('.fbd-leaderboard li:nth-child(even)').addClass('even');
+
saveFormState();
var filterType = $( '#fbd-filters' ).children( 'form' ).data(
'filtertype' );
// If filtering already happened on the PHP side, don't load the form
state from cookies
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs