mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
fixup for category-links in achievements-listview if its a statistic
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
points:{$curr.points},
|
||||
category:{$curr.category},
|
||||
parentcat:{$curr.parentCat}
|
||||
{if isset($curr.type)}, type:{$curr.type}{/if}
|
||||
{if isset($curr.rewards)}, rewards:{$curr.rewards}{/if}
|
||||
{if isset($curr.reward)}, reward:'{$curr.reward|escape:"javascript"}'{/if}
|
||||
{rdelim}
|
||||
|
||||
@@ -11722,12 +11722,13 @@ Listview.templates = {
|
||||
type: 'text',
|
||||
width: '15%',
|
||||
compute: function(achievement, td) {
|
||||
statistic = achievement.type ? achievement.type + '.' : '';
|
||||
td.className = 'small';
|
||||
path = '?achievements=';
|
||||
path = '?achievements=' + statistic;
|
||||
if (achievement.category != -1 && achievement.parentcat != -1) {
|
||||
var a2 = ce('a');
|
||||
a2.className = 'q0';
|
||||
a2.href = '?achievements=' + achievement.parentcat;
|
||||
a2.href = '?achievements=' + statistic + achievement.parentcat;
|
||||
ae(a2, ct(g_achievement_categories[achievement.parentcat]));
|
||||
ae(td, a2);
|
||||
ae(td, ce('br'));
|
||||
|
||||
Reference in New Issue
Block a user