Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
875 lars 1
    $(function(){
2
 
3
        setTimeout("new_docs()",5000);
4
        $('.doc_link').click(mark_as_seen);
5
    });
6
 
7
    function mark_as_seen()
8
    {
9
        id = this.id.split("_");
10
        d_id = id[2];
11
        b_id = id[3];
12
        $.get("/Warenwirtschaft/mark_as_seen.php?doc_id="+d_id,function(html){
13
            $('#unread_docs_'+b_id+'_'+d_id+'_helper').html('');
14
        });
15
    }
16
 
17
    function new_docs()
18
    {
19
        $('.unread_docs_helper').each(function(index, elem){
20
            id = elem.id.split("_");
21
            param = "bestellung="+id[2];
22
            if(id.length==5)
23
            {
24
                param = "document="+id[3];
25
            }
26
            $.get("/Warenwirtschaft/get_anz_unread_docs.php?"+param,function(html){
27
                $('#'+elem.id).html(html);
28
            })
29
        });
30
    }