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
    update_versand($(this));
4
 
5
    $('.input1').keyup(function(e) {
6
        if(e.keyCode == 13) {
7
            $("form#login").submit();
8
            return false;
9
        }
10
    });
11
 
12
    $('#Lieferadresse_t').click(function(){
13
        $('#Lieferadresse').show();
14
        $('#packstation').hide();
15
        $('.dhl').attr("disabled",true);
16
        $('.adresse').removeAttr("disabled");
17
    });
18
    $('#Lieferadresse_f').click(function(){
19
        $('#Lieferadresse').hide();
20
        $('#packstation').hide();
21
        $('.dhl').attr("disabled",true);
22
        $('.adresse').attr("disabled",true);
23
    });
24
    $('#Lieferadresse_p').click(function(){
25
        $('#packstation').show();
26
        $('#Lieferadresse').hide();
27
        $('.dhl').removeAttr("disabled");
28
        $('.adresse').attr("disabled",true);
29
    });
30
 
31
 
32
    if (land != 1) {
33
        $('#ustidnr_text').show();
34
        $('#ustidnr_input').show();
35
    } else {
36
        $('#ustidnr_text').hide();
37
        $('#ustidnr_input').hide();
38
    }
39
    $('#Land').change(function() {
40
        land = $('#Land').val();
41
        if (land != 1) {
42
            $('#ustidnr_text').show();
43
            $('#ustidnr_input').show();
44
        } else {
45
            $('#ustidnr_text').hide();
46
            $('#ustidnr_input').hide();
47
        }
48
 
49
        if($(".lieferadresseChangeRadio:checked").val() == "false"){
50
            c_url="/source/update_versand.php?Land="+land+"&liefer=0";
51
            $('#versand_optionen').load(c_url);
52
        }
53
    })
54
    $("#liefer_Land").change(function(){
55
        update_versand($(this));
56
    });
57
 
58
    $(document).delegate(".lieferadresseChangeRadio", "change", function(){
59
 
60
        if( $(this).val() == "false"  ){
61
            land = $("#Land").val();
62
            c_url="/source/update_versand.php?Land="+land+"&liefer=0";
63
        }else{
64
            land = $("#liefer_Land").val();
65
            c_url="/source/update_versand.php?Land="+land+"&liefer=1";
66
        }
67
        if($('#kurier_active').attr("checked")=="true")
68
        {
69
            c_url+="&kurier=1";
70
        }
71
        $('#versand_optionen').load(c_url);
72
    });
73
});
74
function update_versand(e)
75
{
76
 
77
    if( typeof e != "undefined" ){
78
        if( e.val() != ""){
79
            land= e.val();
80
        }
81
        c_url="/update_versand.php?Land="+land;
82
        if(this.id=="liefer_Land")
83
        {
84
            c_url+="&liefer=1";
85
        }
86
        else
87
        {
88
            c_url+="&liefer=0";
89
        }
90
    }else{
91
 
92
        c_url="/update_versand.php?";
93
    }
94
    if($('#kurier_active').prop("checked")== true )
95
    {
96
        c_url+="&kurier=1";
97
    }
98
    $('#versand_optionen').load(c_url);
99
}