Subversion-Projekte lars-tiefland.ci

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

    $(function(){

        setTimeout("new_docs()",5000);
        $('.doc_link').click(mark_as_seen);
    });

    function mark_as_seen()
    {
        id = this.id.split("_");
        d_id = id[2];
        b_id = id[3];
        $.get("/Warenwirtschaft/mark_as_seen.php?doc_id="+d_id,function(html){
            $('#unread_docs_'+b_id+'_'+d_id+'_helper').html('');                
        });
    }

    function new_docs()
    {
        $('.unread_docs_helper').each(function(index, elem){
            id = elem.id.split("_");
            param = "bestellung="+id[2];
            if(id.length==5)
            {
                param = "document="+id[3];
            }
            $.get("/Warenwirtschaft/get_anz_unread_docs.php?"+param,function(html){
                $('#'+elem.id).html(html);
            })
        });
    }