Skip to content
Snippets Groups Projects
Unverified Commit 21a9b2b3 authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

Do not override onload callback.

* src/cuirass/templates.scm (make-line-chart): Do not override onload callback
as that would prevent us from adding multiple charts.
parent 5a947e18
No related branches found
No related tags found
No related merge requests found
......@@ -853,10 +853,11 @@ and BUILD-MAX are global minimal and maximal row identifiers."
(title . ((display . #t)
(text . ,title)))
(scales . ,scales))))))
`((script ,(format #f "window.onload = function() {\
`((script ,(format #f "window.addEventListener(\"load\",
function(event) {\
window.~a = new Chart\
(document.getElementById('~a').getContext('2d'), ~a);\
};" id id (scm->json-string chart))))))
});" id id (scm->json-string chart))))))
(define* (global-metrics-content #:key
builds-per-day
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment