Index: trunk/extensions/CodeReview/modules/ext.codereview.tooltips.js |
— | — | @@ -40,11 +40,13 @@ |
41 | 41 | var text = rev['*'].length > 82 ? rev['*'].substr(0,80) + '...' : rev['*']; |
42 | 42 | text = mw.html.escape( text ); |
43 | 43 | text = text.replace( /\n/g, '<br/>' ); |
| 44 | + var status = mw.html.escape( rev.status ); |
| 45 | + var author = mw.html.escape( rev.author ); |
44 | 46 | |
45 | | - var tip = '<div class="mw-codereview-status-' + rev.status + '" style="padding:5px 8px 4px; margin:-5px -8px -4px;">' |
| 47 | + var tip = '<div class="mw-codereview-status-' + status + '" style="padding:5px 8px 4px; margin:-5px -8px -4px;">' |
46 | 48 | + 'r' + matches[2] |
47 | | - + ' [' + rev.status + '] by ' |
48 | | - + rev.author |
| 49 | + + ' [' + status + '] by ' |
| 50 | + + author |
49 | 51 | + ( rev['*'] ? ' - ' + text : '' ) |
50 | 52 | + '</div>'; |
51 | 53 | $el.attr( 'title', tip ); |