Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 224 | Revision 313 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 224 Revision 312
Zeile 1... Zeile 1...
1
<!-- $Id: supplier.tpl 224 2023-08-09 10:59:14Z lars $ BEGIN -->
1
<!-- $Id: supplier.tpl 312 2023-08-12 14:49:09Z lars $ BEGIN -->
2
<script>
2
<script>
3
    $(function()
3
    $(function()
4
    {
4
    {
5
        $('#versandkostenLink').click(function(){
5
        $('#versandkostenLink').click(function(){
6
            $('#versandkosten').load("/bestellwesen/suppliers/{$lieferant.id}/shipping")
6
            $('#versandkosten').load("/bestellwesen/suppliers/{$lieferant.id}/shipping")
Zeile 21... Zeile 21...
21
            height:600,
21
            height:600,
22
            resizable:false,
22
            resizable:false,
23
            modal:true,
23
            modal:true,
24
            buttons:{
24
            buttons:{
25
                "speichern":function (){
25
                "speichern":function (){
-
 
26
 
26
                    $.post("lieferant_edit_config.php",$('#configForm').serializeArray(),function(json) {
27
                    $.post("lieferant_edit_config.php",$('#configForm').serializeArray(),function(json) {
27
                        $('#editConfigDlg').dialog("close");
28
                        $('#editConfigDlg').dialog("close");
28
                        let ret=$.parseJSON(json);
29
                        let ret=$.parseJSON(json);
29
                        let err=ret.err;
30
                        let err=ret.err;
30
                        let msg=ret.msg;
31
                        let msg=ret.msg;
Zeile 90... Zeile 91...
90
                        msg='<div style="color:red;font-weight:bold">'+msg+'</div>';
91
                        msg='<div style="color:red;font-weight:bold">'+msg+'</div>';
91
                    }
92
                    }
92
                    $('#bestandUploadMsg').html(msg).dialog("open");
93
                    $('#bestandUploadMsg').html(msg).dialog("open");
93
                },
94
                },
94
                error: function (xhr, status, error) {
95
                error: function (xhr, status, error) {
-
 
96
                    $('#warehouseError').html(response.responseJSON.message);
-
 
97
                    let errors = response.responseJSON.errors
-
 
98
                    if(errors.name)
95
                    //....
99
                    {
-
 
100
                        $('#warehouseNameError').html(errors.name)
-
 
101
                    }
-
 
102
                    if(errors.rank)
-
 
103
                    {
-
 
104
                        $('#shippingRankError').html(errors.rank)
-
 
105
                    }
96
                }
106
                }
97
            });
107
            });
98
        });
108
        });
99
    });
109
    });
Zeile 421... Zeile 431...
421
    })
431
    })
422
</script>
432
</script>
423
<div id="bestandUploadMsg" title="Ergebnis"></div>
433
<div id="bestandUploadMsg" title="Ergebnis"></div>
424
<div id="editConfigDlg" title="Konfiguration ändern"></div>
434
<div id="editConfigDlg" title="Konfiguration ändern"></div>
425
{/if}
435
{/if}
426
<!-- $Id: supplier.tpl 224 2023-08-09 10:59:14Z lars $ END -->
436
<!-- $Id: supplier.tpl 312 2023-08-12 14:49:09Z lars $ END -->