Skip to content

Commit

Permalink
Migrate inline handlers (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam authored Mar 22, 2024
1 parent 97bb4b2 commit 58a09de
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions OConnor/resources/views/Elispot_Matrix.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
window.location = LABKEY.ActionURL.buildURL('project','begin', wbcontainer);
}
});

return false;
}

var trad1 = '';
Expand Down Expand Up @@ -44,8 +46,12 @@

if(matrixExps != undefined || tradExps != undefined){
document.getElementById('matches').innerHTML = 'Possible Matches';
document.getElementById('experiments').innerHTML = '&nbsp Trad. 1: ' + '<a href=javascript:toExperiment(trad1)>' + trad1 + '</a>' + '&nbsp Trad. 2: ' + '<a href=javascript:toExperiment(trad2)>' + trad2 + '</a>' + '&nbsp Matrix 1: ' + '<a href=javascript:toExperiment(matrix1)>' + matrix1 + '</a>' + '&nbsp Matrix 2: ' + '<a href=javascript:toExperiment(matrix2)>' + matrix2 + '</a>';
}
document.getElementById('experiments').innerHTML = '&nbsp Trad. 1: ' + '<a id="trad1">' + LABKEY.Utils.encodeHtml(trad1) + '</a>' + '&nbsp Trad. 2: ' + '<a id="trad2">' + LABKEY.Utils.encodeHtml(trad2) + '</a>' + '&nbsp Matrix 1: ' + '<a id="matrix1">' + LABKEY.Utils.encodeHtml(matrix1) + '</a>' + '&nbsp Matrix 2: ' + '<a id="matrix2">' + LABKEY.Utils.encodeHtml(matrix2) + '</a>';
document.getElementById('trad1')['onclick'] = function() { toExperiment(trad1) };
document.getElementById('trad2')['onclick'] = function() { toExperiment(trad2) };
document.getElementById('matrix1')['onclick'] = function() { toExperiment(matrix1) };
document.getElementById('matrix2')['onclick'] = function() { toExperiment(matrix2) };
}

var allexps = matrix1 + ';' + matrix2 + ';' + trad1 + ';' + trad2;

Expand Down

0 comments on commit 58a09de

Please sign in to comment.