fix missing chart regression (#72)

This commit is contained in:
Simon Michael 2012-01-03 13:00:28 +00:00
parent 03359b48d3
commit 48460b0130

View File

@ -394,7 +394,7 @@ registerChartHtml items =
-- is hidden, eg with add form toggled -- is hidden, eg with add form toggled
[$hamlet| [$hamlet|
<script type=text/javascript> <script type=text/javascript>
if (document.getElementById('maincontent').style.display == 'block') if (document.getElementById('maincontent').style.display != 'none')
\$(document).ready(function() { \$(document).ready(function() {
/* render chart */ /* render chart */
\$.plot($('#register-chart'), \$.plot($('#register-chart'),