Index: trunk/extensions/MoodBar/SpecialFeedbackDashboard.php |
— | — | @@ -203,7 +203,7 @@ |
204 | 204 | //only show response elements if feedback is not hidden, and user is logged in |
205 | 205 | if ($feedbackItem->getProperty('hidden-state') == false |
206 | 206 | && !$wgUser->isAnon() ) { |
207 | | - $respondToThis = wfMessage('moodbar-respond-collapsed').' '.wfMessage("moodbar-respond-text"); |
| 207 | + $respondToThis = "<span>".wfMessage('moodbar-respond-collapsed')->escaped().'</span> '.wfMessage("moodbar-respond-text")->escaped(); |
208 | 208 | $responseElements = <<<HTML |
209 | 209 | <div class="fbd-item-response"> |
210 | 210 | <a class="fbd-respond-link">$respondToThis</a> |
Index: trunk/extensions/MoodBar/modules/ext.moodBar.dashboard/ext.moodBar.dashboard.js |
— | — | @@ -359,7 +359,8 @@ |
360 | 360 | $link = $( this ).find('.fbd-respond-link'); |
361 | 361 | if( $link.hasClass('responder-expanded') ) { |
362 | 362 | |
363 | | - $link.empty().html( mw.msg( 'moodbar-respond-collapsed' ) + ' ' + mw.msg( 'moodbar-respond-text' ) ) |
| 363 | + $link.find('span').text( mw.msg( 'moodbar-respond-collapsed' ) ) |
| 364 | + .parent() |
364 | 365 | .removeClass('responder-expanded'); |
365 | 366 | |
366 | 367 | $( this ).find('.fbd-response-form').remove(); |
— | — | @@ -439,7 +440,8 @@ |
440 | 441 | |
441 | 442 | closeAllResponders(); |
442 | 443 | |
443 | | - $(this).empty().html( mw.msg( 'moodbar-respond-expanded' ) + ' ' + mw.msg( 'moodbar-respond-text' ) ) |
| 444 | + $(this).find('span').text( mw.msg( 'moodbar-respond-expanded' ) ) |
| 445 | + .parent() |
444 | 446 | .addClass( 'responder-expanded' ) |
445 | 447 | .end(); |
446 | 448 | |