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

Revision

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

Revision 380 Revision 383
Zeile 42... Zeile 42...
42
                                location.reload()
42
                                location.reload()
43
                            });*/
43
                            });*/
44
                            $.ajax({
44
                            $.ajax({
45
                                type:"post",
45
                                type:"post",
46
                                url:url,
46
                                url:url,
47
                                data:$('#supplierForm').serializeArray(),
47
                                data:$('#userForm').serializeArray(),
48
                                dataType: 'json',
48
                                dataType: 'json',
49
                                success:function ()
49
                                success:function ()
50
                                {
50
                                {
51
                                    $('#editDlg').dialog("close");
51
                                    $('#editDlg').dialog("close");
52
                                    location.reload();
52
                                    location.reload();
53
                                },
53
                                },
54
                                error:function (response)
54
                                error:function (response)
55
                                {
55
                                {
56
                                    $('#supplierError').html(response.responseJSON.message);
56
                                    $('#userError').html(response.responseJSON.message);
57
                                    let errors = response.responseJSON.errors
57
                                    let errors = response.responseJSON.errors
58
                                    if(errors.name)
58
                                    if(errors.email)
59
                                    {
59
                                    {
60
                                        $('#supplierNameError').html(errors.name)
60
                                        $('#userEmailError').html(errors.email)
61
                                    }
61
                                    }
62
                                    if(errors.rank)
62
                                    if(errors.rank)
63
                                    {
63
                                    {
64
                                        $('#supplierRankError').html(errors.rank)
64
                                        $('#userRankError').html(errors.rank)
-
 
65
                                    }
-
 
66
                                    if(errors.password)
-
 
67
                                    {
-
 
68
                                        $('#userPasswordError').html(errors.password)
-
 
69
                                    }
-
 
70
                                    if(errors.password_confirmation)
-
 
71
                                    {
-
 
72
                                        $('#userPasswordconfirmationError').html(errors.password_confirmation)
65
                                    }
73
                                    }
66
                                }
74
                                }
67
                            })
75
                            })
68
                        }
76
                        }
69
                    },
77
                    },