Skip to content

Commit

Permalink
fix single variant tabhead
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoad committed Jun 3, 2024
1 parent 9ff7f41 commit eb2528a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cravat/websubmit/nocache/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<div id='storediv_tabhead' class='tabhead' value='storediv' disabled='t'>
STORE
</div>
<!-- onclick for the link in the html markup instead of js prevents popup warning -->
<div id='singlevar_tabhead' class='tabhead' value='singlevardiv' disabled='t' onclick="window.open('/webapps/variantreport/index.html', '_blank')">
<!-- onclick for the link is filled in js as plain text to prevent popup warning -->
<div id='singlevar_tabhead' class='tabhead' value='singlevardiv' disabled='t'>
SINGLE VARIANT
</div>
<div id='admindiv_tabhead' class='tabhead' value='admindiv' disabled='t' style='display: none;'>
Expand Down
5 changes: 3 additions & 2 deletions cravat/websubmit/nocache/websubmit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,9 @@ function setVariantReportURL() {
if (!('variantreport' in OC.localModuleInfo)) {
url = 'https://run.opencravat.org'+url
}
let anchor = document.querySelector('#singlevar-link');
anchor.href = url;
let tabhead = document.querySelector('#singlevar_tabhead');
tabhead.setAttribute("onclick", `window.open('${url}', '_blank')`);
tabhead.setAttribute("disabled","f");
}

function setLastAssembly () {
Expand Down

0 comments on commit eb2528a

Please sign in to comment.