summaryrefslogtreecommitdiffstats
path: root/web/static/js/kill.js
diff options
context:
space:
mode:
authorraylu <raylu@gridium.com>2013-10-23 01:16:34 -0700
committerraylu <raylu@gridium.com>2013-10-23 01:16:34 -0700
commited59e1b3c6ebf1b4fb114264db19b7b21eb54468 (patch)
tree97ee67ba01da8f9e9e0a1cfb25eabf3917e00558 /web/static/js/kill.js
parent719c83e23485ef7caefbc574c23ba91a2e661ce8 (diff)
downloadykill-ed59e1b3c6ebf1b4fb114264db19b7b21eb54468.tar.xz
ship as item on kill, hide cents
also, set height on kill page so loading images doesn't adjust heights and fix firefox kill_list ellipsis
Diffstat (limited to 'web/static/js/kill.js')
-rw-r--r--web/static/js/kill.js25
1 files changed, 16 insertions, 9 deletions
diff --git a/web/static/js/kill.js b/web/static/js/kill.js
index 88c07c7..03652d5 100644
--- a/web/static/js/kill.js
+++ b/web/static/js/kill.js
@@ -42,16 +42,10 @@ window.addEvent('domready', function() {
),
new Element('td', {'html': victim['faction_name']})
));
- table.adopt(
- new Element('tr').adopt(
- new Element('td').grab(
- ykill.portrait(victim['ship_type_id'], victim['ship_name'], 'type', '_64.png')
- ),
- new Element('td', {'html': victim['ship_name']})
- ),
+ table.grab(
new Element('tr').adopt(
new Element('td', {'html': 'cost'}),
- new Element('td', {'html': ykill.format_isk(kill['cost'] / 100)})
+ new Element('td', {'html': ykill.format_isk(kill['cost'])})
)
);
@@ -98,6 +92,19 @@ window.addEvent('domready', function() {
}
table = $('items');
+ table.adopt(
+ new Element('tr').grab(
+ new Element('td', {'html': 'ship', 'colspan': 4, 'class': 'slot'})
+ ),
+ new Element('tr').adopt(
+ new Element('td').grab(
+ ykill.portrait(victim['ship_type_id'], victim['ship_name'], 'type', '_32.png')
+ ),
+ new Element('td', {'html': victim['ship_name']}),
+ new Element('td'),
+ new Element('td', {'html': ykill.format_isk(victim['ship_cost'])})
+ )
+ );
var slots = ['subsystem', 'high', 'medium', 'low', 'rig', 'drone bay', 'cargo', 'special hold', 'implant', '???'];
slots.each(function(slot) {
if (!items[slot])
@@ -135,7 +142,7 @@ window.addEvent('domready', function() {
),
new Element('td', {'html': item['item_name']}),
new Element('td', {'html': count, 'class': item_class}),
- new Element('td', {'html': ykill.format_isk(item['cost'] / 100)})
+ new Element('td', {'html': ykill.format_isk(item['cost'])})
));
});
});