You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: installationplots.js
+11-2
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ $(document).ready(function() {
24
24
dvserver+'/api/info/metrics/tree'+addAlias(),
25
25
function(data){
26
26
varnodes=data.data;
27
+
updateDisplayName(nodes.name,config);
27
28
if(typeofnodes.children!=='undefined'){
28
29
nodes.children.forEach((node)=>{
29
30
//Make each element in the tree (below the root) a link to get the metrics for that sub-dataverse
@@ -44,7 +45,7 @@ $(document).ready(function() {
44
45
$('#subtitle').html("<h2>Showing Metrics from the whole repository</h2>");
45
46
$('#selectString').html('<div>Click a sub-'+config.dataverseTerm+' name to see its metrics</div>');
46
47
}else{
47
-
$('#subtitle').html("<h2>Showing Metrics from the "+alias+" "+config.dataverseTerm+"</h2>");
48
+
// Note that the subtitle is updated async via ajax
48
49
$('#selectString').html('<div><a href= "'+window.location.href.split('?')[0]+'">Show Metrics for the whole repository</a></div><div>Click a sub-'+config.dataverseTerm+' name to see its metrics</div>');
49
50
}
50
51
@@ -538,10 +539,18 @@ function addAlias() {
538
539
539
540
//Turn dataverse names into links to the metrics page using that dataverse as the parent
0 commit comments