aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/CGP-sync.js
blob: 01f6b19a3efcd7addadf403a47554c17afebd65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function draw(id) {
        var rrdgraph = prepare_draw(id);

        try {
                rrdgraph.graph_paint();
        } catch (e) {
                alert(e+"\n"+e.stack);
        }
}

function drawAll()
{
        var list=[];
        var a=document.getElementsByClassName('rrd');
        for (var i=0,l=a.length;i<l;i++)
        {
                draw(a[i].getAttribute('id'))
        }
}

window.onload = drawAll()