Subversion-Projekte lars-tiefland.nagios-php

Revision

Revision 88 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
88 lars 1
// $Header: file:///svn/repos/nagios-php/js/nagios-php.js 98 2013-01-03 09:52:28Z lars $
98 lars 2
var aktiv;
9 lars 3
$(function()
4
{
5
    $('#accordion').accordion(
6
    {
7
        heightStyle: "content",
8
        icons: {
9
            "header": "ui-icon-plus",
10
            "headerSelected": "ui-icon-minus"
11
        }
12
    });
13
    $('#tac').click(load_tac);
56 lars 14
    $('#hgo').click(load_hgo);
41 lars 15
    $('#hgs').click(load_hgs);
16
    $('#hgg').click(load_hgg);
56 lars 17
    $('#sgo').click(load_sgo);
41 lars 18
    $('#sgs').click(load_sgs);
19
    $('#sgg').click(load_sgg);
9 lars 20
 
75 lars 21
});
22
 
23
function load_tac()
24
{
25
    $('#content').html('Loading...');
26
    $('#content').load("tac.php");
27
}
28
 
29
function load_hgo()
30
{
31
    $('#content').html('Loading...');
32
    $('#content').load("hostgroups.php?mode=overview");
33
}
34
 
35
function load_hgs()
36
{
37
    $('#content').html('Loading...');
38
    $('#content').load("hostgroups.php?mode=summary");
39
}
40
 
41
function load_hgg()
42
{
43
    $('#content').html('Loading...');
44
    $('#content').load("hostgroups.php?mode=grid");
45
}
46
 
47
function load_sgo()
48
{
49
    $('#content').html('Loading...');
50
    $('#content').load("servicegroups.php?mode=overview");
51
}
52
 
53
function load_sgs()
54
{
55
    $('#content').html('Loading...');
56
    $('#content').load("servicegroups.php?mode=summary");
57
}
58
 
59
function load_sgg()
60
{
61
    $('#content').html('Loading...');
62
    $('#content').load("servicegroups.php?mode=grid");
98 lars 63
}
64
 
65
function callJsFunc(func, delay)
66
{
67
    clearTimeout(aktiv);
68
    aktiv = setTimeout(func, delay);
75 lars 69
}