Skip to content

Commit 1bbd508

Browse files
author
Mark Robinson
committed
Use new renderer callback functionality to hide loading img
1 parent ee24414 commit 1bbd508

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/resources/static/js/workflow.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ require(['jquery', 'bootstrap.modal', 'renderer'],
5353
// Update stage with new dot source
5454
renderer.render(dotGraph);
5555

56-
// Fade the loading and show graph
57-
$("#loading").fadeOut();
56+
// Fade the loading and show graph when graph is drawn
57+
renderer.renderHandler(function() {
58+
$("#loading").fadeOut();
59+
});
5860

5961
/**
6062
* Download the rendered graph as a png

0 commit comments

Comments
 (0)