summaryrefslogtreecommitdiff
path: root/inventory/media/javascript/dialogs.js
blob: 48dbedf171099df037ca7dc7e495e9dc86121c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function showDialog(d) {
        d.show("slow");
}


function hideDialog(d) {
        d.hide("def");
}


function showStatus(msg, disappeartime) {
        if (disappeartime == undefined) {
                disappeartime = 2500;
        }
        $('#statusbox').text(msg);
        $('#statusbox').show("slow");
        $('#statusbox').animate({}, disappeartime).hide("def");
}


function hideStatus() {
        $('#statusbox').hide("def");
}


function showProgress(msg) {
        $('#progressmsg').text(msg);
        $('#progressbox').show("slow");
}


function hideProgress(msg) {
        $('#progressbox').hide("def");
}