Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
9 lars 1
            $(function()
2
            {
3
                $('.edit_bestellung').button(
4
                {
5
                    icons:
6
                    {
7
                        primary: "ui-icon-pencil"
8
                    }
9
                });
10
                $('.order_details').hide();
11
                $('.order_details_button').button({
12
                    icons:
13
                    {
14
                        primary: "ui-icon-plus"
15
                    }
16
                }).click(show_details);
17
                $('.order_list_button').button({
18
                    icons:
19
                    {
20
                        primary: "ui-icon-minus"
21
                    }
22
                }).hide().click(hide_details);
23
            });
24
            function show_details()
25
            {
26
                l_id=this.id;
27
                id_arr=l_id.split("_");
28
                b_nr=id_arr[3];
29
                $('#order_details_'+b_nr).load("/Warenwirtschaft/getOrderDetails.php?id="+b_nr);
30
                $('#order_details_'+b_nr).show(500);
31
                $(this).hide();
32
                $('#order_list_button_'+b_nr).show();
33
            }
34
            function hide_details()
35
            {
36
                l_id=this.id;
37
                id_arr=l_id.split("_");
38
                b_nr=id_arr[3];
39
                $('#order_details_'+b_nr).hide(500);
40
                $(this).hide();
41
                $('#order_details_button_'+b_nr).show();
42
            }