summaryrefslogtreecommitdiffstats
path: root/web/static/js/search.js
blob: 1bb2d51b206dc2b73f5fe46a9afd72d9556e2667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
window.addEvent('domready', function() {
	document.title += ' - search';
	ykill.api('/search' + document.location.search, function(results) {
		var corps = $('corps');
		results.corporations.each(function(corp) {
			corps.adopt(
				new Element('a', {
					'html': corp.corporation_name,
					'href': '/corporation/' + corp.corporation_id,
				}),
				new Element('br')
			);
		});
	});
});