Subversion Repositories oidplus

Rev

Rev 642 | Rev 962 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 642 Rev 833
Line 47... Line 47...
47
                                mobile: $("#mobile").val(),
47
                                mobile: $("#mobile").val(),
48
                                fax: $("#fax").val()
48
                                fax: $("#fax").val()
49
                        },
49
                        },
50
                        error:function(jqXHR, textStatus, errorThrown) {
50
                        error:function(jqXHR, textStatus, errorThrown) {
51
                                if (errorThrown == "abort") return;
51
                                if (errorThrown == "abort") return;
52
                                alert(_L("Error: %1",errorThrown));
52
                                alertError(_L("Error: %1",errorThrown));
53
                        },
53
                        },
54
                        success: function(data) {
54
                        success: function(data) {
55
                                if ("error" in data) {
55
                                if ("error" in data) {
56
                                        alert(_L("Error: %1",data.error));
56
                                        alertError(_L("Error: %1",data.error));
57
                                } else if (data.status >= 0) {
57
                                } else if (data.status >= 0) {
58
                                        alert(_L("Done"));
58
                                        alertSuccess(_L("Done"));
59
                                        //window.location.href = '?goto=oidplus:system';
59
                                        //window.location.href = '?goto=oidplus:system';
60
                                        //reloadContent();
60
                                        //reloadContent();
61
                                } else {
61
                                } else {
62
                                        alert(_L("Error: %1",data));
62
                                        alertError(_L("Error: %1",data));
63
                                }
63
                                }
64
                }
64
                }
65
                });
65
                });
66
                return false;
66
                return false;
67
        }
67
        }