diff options
Diffstat (limited to 'web/static/js/search.js')
-rw-r--r-- | web/static/js/search.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/static/js/search.js b/web/static/js/search.js new file mode 100644 index 0000000..faeb8fe --- /dev/null +++ b/web/static/js/search.js @@ -0,0 +1,11 @@ +window.addEvent('domready', function() { + ykill.api('/search' + document.location.search, function(results) { + var corps = $('corps'); + results.corporations.each(function(corp) { + corps.grab(new Element('a', { + 'html': corp.corporation_name, + 'href': '/corporation/' + corp.corporation_id, + })); + }); + }); +}); |