Subversion-Projekte lars-tiefland.ci

Revision

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

Revision Autor Zeilennr. Zeile
41 lars 1
$(function()
2
{
3
    $('#garantie').click(set_garantie);
4
    $('.garantie_basket').click(set_garantie_basket)
5
})
6
 
7
function set_garantie()
8
{
9
    val = $('#garantie').attr("checked");
10
    if (val == "checked")
11
    {
12
        $('.hd_warenkorb').load('/module/add_item_to_basket.php', $('#garantie_form').serialize(), function(data)
13
        {
14
            // document.location.href="/basket.html";
15
        });
16
    }
17
}
18
 
19
function set_garantie_basket()
20
{
21
    f_id_c=this.id;
22
    f_id=f_id_c.split('_');
23
    b_id=f_id[2];
24
    f_id=f_id[1];
25
    $('.hd_warenkorb').load('/module/add_item_to_basket.php?for='+f_id+"&b_id="+b_id,function(html){
26
        //$('#'+f_id_c).hide();
27
        document.location.href="/basket.html";
28
    });
29
}