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

Revision

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

Revision 313 Revision 314
Zeile 1... Zeile 1...
1
<!-- $Id: supplier.tpl 313 2023-08-12 14:54:03Z lars $ BEGIN -->
1
<!-- $Id: supplier.tpl 314 2023-08-12 14:56:20Z 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 91... Zeile 91...
91
                        msg='<div style="color:red;font-weight:bold">'+msg+'</div>';
91
                        msg='<div style="color:red;font-weight:bold">'+msg+'</div>';
92
                    }
92
                    }
93
                    $('#bestandUploadMsg').html(msg).dialog("open");
93
                    $('#bestandUploadMsg').html(msg).dialog("open");
94
                },
94
                },
95
                error: function (xhr, status, error) {
95
                error: function (xhr, status, error) {
96
                    $('#warehouseError').html(xhr.responseJSON.message);
-
 
97
                    let errors = xhr.responseJSON.errors
-
 
98
                    if(errors.name)
-
 
99
                    {
-
 
100
                        $('#warehouseNameError').html(errors.name)
-
 
101
                    }
-
 
102
                    if(errors.rank)
-
 
103
                    {
-
 
104
                        $('#shippingRankError').html(errors.rank)
-
 
105
                    }
-
 
106
                }
96
                }
107
            });
97
            });
108
        });
98
        });
109
    });
99
    });
Zeile 431... Zeile 421...
431
    })
421
    })
432
</script>
422
</script>
433
<div id="bestandUploadMsg" title="Ergebnis"></div>
423
<div id="bestandUploadMsg" title="Ergebnis"></div>
434
<div id="editConfigDlg" title="Konfiguration ändern"></div>
424
<div id="editConfigDlg" title="Konfiguration ändern"></div>
435
{/if}
425
{/if}
436
<!-- $Id: supplier.tpl 313 2023-08-12 14:54:03Z lars $ END -->
426
<!-- $Id: supplier.tpl 314 2023-08-12 14:56:20Z lars $ END -->