* fixed display of reputation columns on listviews on detail page
This commit is contained in:
Sarjuuk
2015-08-04 21:23:49 +02:00
parent 7ce72bf623
commit a0887f189f
5 changed files with 35 additions and 10 deletions

View File

@@ -1,3 +1,20 @@
<?php
if (!empty($params['extraCols']) && strpos($params['extraCols'], '_')):
?>
var _ = [
{
id: 'reputation',
after: 'location',
name: LANG.rep,
tooltip: LANG.tooltip_repgain,
width: '8%',
value: 'reputation'
}
];
<?php
endif;
?>
new Listview({
template:'npc',
<?php

View File

@@ -1,5 +1,5 @@
<?php
if (!empty($lv['showRep'])):
if (!empty($params['extraCols']) && strpos($params['extraCols'], '_')):
?>
var _ = [
{

View File

@@ -1,5 +1,5 @@
<?php
if (!empty($lv['showRep'])):
if (!empty($params['extraCols']) && strpos($params['extraCols'], '_')):
?>
var _ = [
{