From 58a09de75efabb471aa3e6d5e6addeb18b87334e Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Fri, 22 Mar 2024 14:49:18 -0700 Subject: [PATCH] Migrate inline handlers (#139) --- OConnor/resources/views/Elispot_Matrix.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OConnor/resources/views/Elispot_Matrix.html b/OConnor/resources/views/Elispot_Matrix.html index 7efc071..2738ecc 100644 --- a/OConnor/resources/views/Elispot_Matrix.html +++ b/OConnor/resources/views/Elispot_Matrix.html @@ -14,6 +14,8 @@ window.location = LABKEY.ActionURL.buildURL('project','begin', wbcontainer); } }); + + return false; } var trad1 = ''; @@ -44,8 +46,12 @@ if(matrixExps != undefined || tradExps != undefined){ document.getElementById('matches').innerHTML = 'Possible Matches'; - document.getElementById('experiments').innerHTML = '  Trad. 1: ' + '' + trad1 + '' + '  Trad. 2: ' + '' + trad2 + '' + '  Matrix 1: ' + '' + matrix1 + '' + '  Matrix 2: ' + '' + matrix2 + ''; - } + document.getElementById('experiments').innerHTML = '  Trad. 1: ' + '' + LABKEY.Utils.encodeHtml(trad1) + '' + '  Trad. 2: ' + '' + LABKEY.Utils.encodeHtml(trad2) + '' + '  Matrix 1: ' + '' + LABKEY.Utils.encodeHtml(matrix1) + '' + '  Matrix 2: ' + '' + LABKEY.Utils.encodeHtml(matrix2) + ''; + 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;