Merge branch 'maint/7.0'
[ninja.git] / application / views / hypermap / hypermap.js
blob9dd485c47ce8d15b4a7dcef16642ce38055fcbde
1 $(document).ready(function() {
2         setTimeout('fixLinks()', 1000);
3 });
5 function fixLinks()
7         $('#iframe').contents().find('a').each(function() {
8                 switch($(this).attr('href')) {
9                         case 'status.cgi?host=all':
10                                 $(this).attr('href', _site_domain + _index_page + '/status/host');
11                                 $(this).attr('target', '_parent');
12                                 break;
13                         case 'status.cgi?hostgroup=all':
14                                 $(this).attr('href', _site_domain + _index_page + '/status/hostgroup');
15                                 $(this).attr('target', '_parent');
16                                 break;
17                 }
18         });
19         setTimeout('fixLinks()', 5000);