6527 |
20 Dec 21 |
nicklas |
var VcfActions = function() |
6527 |
20 Dec 21 |
nicklas |
2 |
{ |
6527 |
20 Dec 21 |
nicklas |
var vcf = {}; |
6527 |
20 Dec 21 |
nicklas |
4 |
|
6527 |
20 Dec 21 |
nicklas |
vcf.initElement = function(element, autoInit) |
6527 |
20 Dec 21 |
nicklas |
6 |
{ |
6527 |
20 Dec 21 |
nicklas |
if (autoInit == 'varsearch-vcf-hits') |
6527 |
20 Dec 21 |
nicklas |
8 |
{ |
6527 |
20 Dec 21 |
nicklas |
Events.addEventHandler(element, 'click', vcf.showVcfHits); |
6527 |
20 Dec 21 |
nicklas |
10 |
} |
6527 |
20 Dec 21 |
nicklas |
11 |
} |
6527 |
20 Dec 21 |
nicklas |
12 |
|
6527 |
20 Dec 21 |
nicklas |
vcf.showVcfHits = function(event) |
6527 |
20 Dec 21 |
nicklas |
14 |
{ |
6527 |
20 Dec 21 |
nicklas |
var homeUrl = Data.get(event.currentTarget, 'home'); |
6527 |
20 Dec 21 |
nicklas |
var url = homeUrl+'/rba-hits.jsp?ID='+App.getSessionId(); |
6527 |
20 Dec 21 |
nicklas |
url += '&rbaId='+Data.get(event.currentTarget, 'rba'); |
6527 |
20 Dec 21 |
nicklas |
url += '&fileId='+Data.get(event.currentTarget, 'file'); |
6527 |
20 Dec 21 |
nicklas |
url += '&idx='+encodeURIComponent(Data.get(event.currentTarget, 'idx')); |
6527 |
20 Dec 21 |
nicklas |
Dialogs.openPopup(url, 'VarSearchVcfHits', 900, 600); |
6527 |
20 Dec 21 |
nicklas |
21 |
} |
6527 |
20 Dec 21 |
nicklas |
22 |
|
6527 |
20 Dec 21 |
nicklas |
return vcf; |
6527 |
20 Dec 21 |
nicklas |
24 |
}(); |
6527 |
20 Dec 21 |
nicklas |
25 |
|
6527 |
20 Dec 21 |
nicklas |
Doc.addElementInitializer(VcfActions.initElement); |