Listviews/RefLoot
* tag ref loot rows as 'commonloot' to keep them out of the 'noteworthy loot' subtab * don't create icon links for ref loot rows
This commit is contained in:
parent
b85ee4ff23
commit
53182aedea
3 changed files with 10 additions and 5 deletions
1
setup/sql/updates/1765116606_01.sql
Normal file
1
setup/sql/updates/1765116606_01.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' globaljs');
|
||||
|
|
@ -411,7 +411,10 @@ Listview.templates = {
|
|||
}
|
||||
|
||||
if (item.id) {
|
||||
$WH.ae(i, g_items.createIcon(item.id, (this.iconSize == null ? 1 : this.iconSize), num, qty));
|
||||
if (item.name.charAt(0) == '@') // aowow - don't create link on icon for ref loot
|
||||
$WH.ae(i, Icon.create(g_items.getIcon(item.id), this.iconSize ?? 1, null, null, num, qty));
|
||||
else
|
||||
$WH.ae(i, g_items.createIcon(item.id, (this.iconSize == null ? 1 : this.iconSize), num, qty));
|
||||
}
|
||||
$WH.ae(tr, i);
|
||||
td.style.borderLeft = 'none';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue