diff options
Diffstat (limited to 'web/static/js')
-rw-r--r-- | web/static/js/kill.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/web/static/js/kill.js b/web/static/js/kill.js index e1e601a..57d33fc 100644 --- a/web/static/js/kill.js +++ b/web/static/js/kill.js @@ -134,8 +134,14 @@ window.addEvent('domready', function() { } items[slot].each(function(item) { var type_id = item['type_id']; + var item_name = item['item_name']; var item_class = item['dropped'] ? 'dropped' : 'destroyed'; var count = item[item_class]; + var cost = item['cost'] * count; + if (item['singleton'] == 2) { + item_name += ' (copy)'; + cost /= 1000; + } table.grab(new Element('tr').adopt( new Element('td').grab( new Element('img', { @@ -143,9 +149,9 @@ window.addEvent('domready', function() { 'alt': item['item_name'], }) ), - new Element('td', {'html': item['item_name']}), + new Element('td', {'html': item_name}), new Element('td', {'html': count, 'class': item_class}), - new Element('td', {'html': ykill.format_isk(item['cost'])}) + new Element('td', {'html': ykill.format_isk(cost)}) )); }); }); |