Skip to content

Commit

Permalink
Fix visibility of sprintf and visualizeDiffExpressionHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Nov 15, 2024
1 parent 266dd4d commit 39fe57c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ Gemma.DifferentialExpressionAnalysesSummaryTree = Ext
linkText += '</span>';
/* provide link for visualization. */
var tipText = "View top differentially expressed genes for &quot;" + factorString + "&quot;";
linkText += '<span class="link" onClick="visualizeDiffExpressionHandler(\'' + eeID + '\',\''
linkText += '<span class="link" onClick="Gemma.visualizeDiffExpressionHandler(\'' + eeID + '\',\''
+ resultSet.resultSetId + '\',\'' + factorString
+ '\', \'' + primaryFactorID + '\')">&nbsp;'
+ "<i class='orange fa fa-area-chart fa-fw fa-lg' ext:qtip='" + tipText + "'></i></span>";
Expand Down Expand Up @@ -765,7 +765,7 @@ Ext.reg('differentialExpressionAnalysesSummaryTree', Gemma.DifferentialExpressio
* fix for now, should replace visualize 'button' with ext button that calls this function, and move function inside
* Gemma.DifferentialExpressionAnalysesSummaryTree
*/
function visualizeDiffExpressionHandler(eeid, diffResultId, factorDetails, factorId) {
Gemma.visualizeDiffExpressionHandler = function(eeid, diffResultId, factorDetails, factorId) {

var visDiffWindow = new Gemma.VisualizationWithThumbsWindow({
thumbnails: false,
Expand Down
4 changes: 3 additions & 1 deletion gemma-web/src/main/webapp/scripts/lib/sprintf.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,6 @@ function sprintf() {
};

return format.replace(regex, doFormat);
}
}

window.sprintf = sprintf;

0 comments on commit 39fe57c

Please sign in to comment.