summaryrefslogtreecommitdiffstats
path: root/public/js/draw.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/draw.js')
-rw-r--r--public/js/draw.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/public/js/draw.js b/public/js/draw.js
index fd99e1a73d..518d1ec545 100644
--- a/public/js/draw.js
+++ b/public/js/draw.js
@@ -1,13 +1,15 @@
+/* globals gitGraph */
+
$(document).ready(function () {
var graphList = [];
-
+
if (!document.getElementById('graph-canvas')) {
return;
}
-
+
$("#graph-raw-list li span.node-relation").each(function () {
graphList.push($(this).text());
})
-
+
gitGraph(document.getElementById('graph-canvas'), graphList);
})