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 37... Line 37...
37
                                old_email: $("#old_email").val(),
37
                                old_email: $("#old_email").val(),
38
                                new_email: $("#new_email").val(),
38
                                new_email: $("#new_email").val(),
39
                        },
39
                        },
40
                        error:function(jqXHR, textStatus, errorThrown) {
40
                        error:function(jqXHR, textStatus, errorThrown) {
41
                                if (errorThrown == "abort") return;
41
                                if (errorThrown == "abort") return;
42
                                alert(_L("Error: %1",errorThrown));
42
                                alertError(_L("Error: %1",errorThrown));
43
                        },
43
                        },
44
                        success: function(data) {
44
                        success: function(data) {
45
                                if ("error" in data) {
45
                                if ("error" in data) {
46
                                        alert(_L("Error: %1",data.error));
46
                                        alertError(_L("Error: %1",data.error));
47
                                } else if (data.status >= 0) {
47
                                } else if (data.status >= 0) {
48
                                        if (isadmin) {
48
                                        if (isadmin) {
49
                                                alert(_L("eMail address of RA changed"));
49
                                                alertSuccess(_L("eMail address of RA changed"));
50
                                                //openOidInPanel('oidplus:rainfo$'+$("#new_email").val(),true);
50
                                                //openOidInPanel('oidplus:rainfo$'+$("#new_email").val(),true);
51
                                                // We need to reload the whole page, because the tree at the left contains a "List RA" list with the RAs
51
                                                // We need to reload the whole page, because the tree at the left contains a "List RA" list with the RAs
52
                                                window.location.href = '?goto='+encodeURIComponent('oidplus:rainfo$'+$("#new_email").val());
52
                                                window.location.href = '?goto='+encodeURIComponent('oidplus:rainfo$'+$("#new_email").val());
53
                                        } else {
53
                                        } else {
54
                                                alert(_L("Verification eMail sent"));
54
                                                alertSuccess(_L("Verification eMail sent"));
55
                                                //window.location.href = '?goto=oidplus:system';
55
                                                //window.location.href = '?goto=oidplus:system';
56
                                                //reloadContent();
56
                                                //reloadContent();
57
                                        }
57
                                        }
58
                                } else {
58
                                } else {
59
                                        alert(_L("Error: %1",data));
59
                                        alertError(_L("Error: %1",data));
60
                                }
60
                                }
61
                        }
61
                        }
62
                });
62
                });
63
                return false;
63
                return false;
64
        },
64
        },
Line 84... Line 84...
84
                                auth: $("#auth").val(),
84
                                auth: $("#auth").val(),
85
                                timestamp: $("#timestamp").val()
85
                                timestamp: $("#timestamp").val()
86
                        },
86
                        },
87
                        error:function(jqXHR, textStatus, errorThrown) {
87
                        error:function(jqXHR, textStatus, errorThrown) {
88
                                if (errorThrown == "abort") return;
88
                                if (errorThrown == "abort") return;
89
                                alert(_L("Error: %1",errorThrown));
89
                                alertError(_L("Error: %1",errorThrown));
90
                        },
90
                        },
91
                        success: function(data) {
91
                        success: function(data) {
92
                                if ("error" in data) {
92
                                if ("error" in data) {
93
                                        alert(_L("Error: %1",data.error));
93
                                        alertError(_L("Error: %1",data.error));
94
                                } else if (data.status >= 0) {
94
                                } else if (data.status >= 0) {
95
                                        alert(_L("Done"));
95
                                        alertSuccess(_L("Done"));
96
                                        window.location.href = '?goto=oidplus:system';
96
                                        window.location.href = '?goto=oidplus:system';
97
                                        //reloadContent();
97
                                        //reloadContent();
98
                                } else {
98
                                } else {
99
                                        alert(_L("Error: %1",data));
99
                                        alertError(_L("Error: %1",data));
100
                                }
100
                                }
101
                        }
101
                        }
102
                });
102
                });
103
                return false;
103
                return false;
104
        }
104
        }