summaryrefslogtreecommitdiffstats
path: root/web/static/js/kill.js
diff options
context:
space:
mode:
authorraylu <raylu@gridium.com>2013-10-25 02:07:18 -0700
committerraylu <raylu@gridium.com>2013-10-25 02:07:18 -0700
commite4987ed6a0766c554f3a39f654afcc3269707f2e (patch)
tree6cb108ceaddf22f6ca64af73718b614a45186c97 /web/static/js/kill.js
parent050dc6915bfe71547129e5f253543c25a4b45e07 (diff)
downloadykill-e4987ed6a0766c554f3a39f654afcc3269707f2e.tar.xz
kill: tooltip on attackers
Diffstat (limited to 'web/static/js/kill.js')
-rw-r--r--web/static/js/kill.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/web/static/js/kill.js b/web/static/js/kill.js
index 5fe2173..4f53db9 100644
--- a/web/static/js/kill.js
+++ b/web/static/js/kill.js
@@ -194,8 +194,14 @@ window.addEvent('domready', function() {
tr.grab(td);
td = new Element('td').adopt(
- ykill.portrait(char['ship_type_id'], char['ship_name'], 'type', '_32.png'),
- ykill.portrait(char['weapon_type_id'], char['weapon_name'], 'type', '_32.png')
+ new Element('div').adopt(
+ ykill.portrait(char['ship_type_id'], char['ship_name'], 'type', '_32.png'),
+ new Element('div', {'class': 'tooltip', 'html': char['ship_name']})
+ ),
+ new Element('div').adopt(
+ ykill.portrait(char['weapon_type_id'], char['weapon_name'], 'type', '_32.png'),
+ new Element('div', {'class': 'tooltip', 'html': char['weapon_name']})
+ )
);
tr.grab(td);
tr.grab(new Element('td').appendText(char['damage'].toLocaleString()));