1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-06 06:10:54 +00:00

3.5.432. Add more stats to mod cards, including username history. De-duplicate mod card stats code with about menu debugging code. Closes #105.

This commit is contained in:
SirStendec 2017-02-26 19:11:28 -05:00
parent 81945e601d
commit df7f5d6ba0
10 changed files with 267 additions and 135 deletions

View file

@ -17,6 +17,7 @@ var FFZ = window.FrankerFaceZ,
C: 67,
H: 72,
S: 83,
Y: 89,
N: 78
},
@ -1140,9 +1141,12 @@ FFZ.prototype.modify_moderation_card = function(component) {
else if ( t.lv_view && key === keycodes.H )
return t.ffzChangePage('history');
else if ( t.lv_view && key === keycodes.S )
else if ( key === keycodes.S )
return t.ffzChangePage('stats');
else if ( key === keycodes.Y )
return t.ffzChangePage('name_history');
else if ( t.lv_view_notes && key === keycodes.N )
return t.ffzChangePage('notes');
@ -1367,6 +1371,9 @@ FFZ.prototype.modify_moderation_card = function(component) {
if ( page_id === 'default' )
tab.classList.add('active');
if ( page.needs_lv )
tab.classList.add('needs-lv');
tab.setAttribute('data-page', page_id);
tabs.appendChild(tab);