Skip to content

Commit d29a90f

Browse files
committed
set graph div id to 'graph'
1 parent 3918bdc commit d29a90f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

devtools/test_dashboard/buttons.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ function plotButtons(plots, figDir) {
2525
plotList.appendChild(button);
2626

2727
button.addEventListener('click', function() {
28-
2928
var myImage = new Image();
3029
myImage.src = figDir + plotname + '.png';
3130

3231
image.innerHTML = '';
3332
image.appendChild(myImage);
3433

34+
gd = document.createElement('div');
35+
gd.id = 'graph';
3536

3637
anchor.innerHTML = '';
37-
38-
gd = document.createElement('div');
3938
anchor.appendChild(gd);
4039

4140
var plot = plots[plotname];

0 commit comments

Comments
 (0)