Index: trunk/extensions/MoodBar/SpecialFeedbackDashboard.php |
— | — | @@ -215,10 +215,12 @@ |
216 | 216 | // 1.17wmf1 compat |
217 | 217 | $links = $GLOBALS['wgUser']->getSkin() |
218 | 218 | ->userToolLinks( $user->getId(), $username ); |
| 219 | + |
| 220 | + $userPageUrl = htmlspecialchars($user->getUserPage()->getLocalURL()); |
219 | 221 | |
220 | 222 | return <<<HTML |
221 | 223 | <div class="fbd-item-userName"> |
222 | | - <a href="#">$username</a> |
| 224 | + <a href="$userPageUrl" class="fbd-item-userLink">$username</a> |
223 | 225 | <sup class="fbd-item-userLinks"> |
224 | 226 | $links |
225 | 227 | </sup> |
Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -333,6 +333,12 @@ |
334 | 334 | loadComments( 'filter' ); |
335 | 335 | } ); |
336 | 336 | |
| 337 | + $( '.fbd-item-userLink' ).live( 'click', function( e ) { |
| 338 | + e.preventDefault(); |
| 339 | + $('#fbd-filters-username').val( $(this).text() ); |
| 340 | + $('#fbd-filters').children('form').submit(); |
| 341 | + } ); |
| 342 | + |
337 | 343 | $( '#fbd-list-more' ).children( 'a' ).click( function( e ) { |
338 | 344 | e.preventDefault(); |
339 | 345 | // We don't call saveFormState() here because we want to use the state of the form |