Subversion Repositories oidplus

Rev

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

Rev 702 Rev 833
Line 40... Line 40...
40
                                action:"ra_logout",
40
                                action:"ra_logout",
41
                                email:email,
41
                                email:email,
42
                        },
42
                        },
43
                        error:function(jqXHR, textStatus, errorThrown) {
43
                        error:function(jqXHR, textStatus, errorThrown) {
44
                                if (errorThrown == "abort") return;
44
                                if (errorThrown == "abort") return;
45
                                alert(_L("Error: %1",errorThrown));
45
                                alertError(_L("Error: %1",errorThrown));
46
                        },
46
                        },
47
                        success:function(data) {
47
                        success:function(data) {
48
                                if ("error" in data) {
48
                                if ("error" in data) {
49
                                        alert(_L("Error: %1",data.error));
49
                                        alertError(_L("Error: %1",data.error));
50
                                } else if (data.status >= 0) {
50
                                } else if (data.status >= 0) {
51
                                        window.location.href = '?goto=oidplus:system';
51
                                        window.location.href = '?goto=oidplus:system';
52
                                        // reloadContent();
52
                                        // reloadContent();
53
                                } else {
53
                                } else {
54
                                        alert(_L("Error: %1",data));
54
                                        alertError(_L("Error: %1",data));
55
                                }
55
                                }
56
                        }
56
                        }
57
                });
57
                });
58
        },
58
        },
59
 
59
 
Line 77... Line 77...
77
                                remember_me:remember_me?1:0,
77
                                remember_me:remember_me?1:0,
78
                                captcha: oidplus_captcha_response()
78
                                captcha: oidplus_captcha_response()
79
                        },
79
                        },
80
                        error:function(jqXHR, textStatus, errorThrown) {
80
                        error:function(jqXHR, textStatus, errorThrown) {
81
                                if (errorThrown == "abort") return;
81
                                if (errorThrown == "abort") return;
82
                                alert(_L("Error: %1",errorThrown));
82
                                alertError(_L("Error: %1",errorThrown));
83
                                oidplus_captcha_reset();
83
                                oidplus_captcha_reset();
84
                        },
84
                        },
85
                        success:function(data) {
85
                        success:function(data) {
86
                                if ("error" in data) {
86
                                if ("error" in data) {
87
                                        alert(_L("Error: %1",data.error));
87
                                        alertError(_L("Error: %1",data.error));
88
                                        oidplus_captcha_reset();
88
                                        oidplus_captcha_reset();
89
                                } else if (data.status >= 0) {
89
                                } else if (data.status >= 0) {
90
                                        window.location.href = '?goto=oidplus:system';
90
                                        window.location.href = '?goto=oidplus:system';
91
                                        // reloadContent();
91
                                        // reloadContent();
92
                                } else {
92
                                } else {
93
                                        alert(_L("Error: %1",data));
93
                                        alertError(_L("Error: %1",data));
94
                                        oidplus_captcha_reset();
94
                                        oidplus_captcha_reset();
95
                                }
95
                                }
96
                        }
96
                        }
97
                });
97
                });
98
        },
98
        },
Line 124... Line 124...
124
                                remember_me:remember_me?1:0,
124
                                remember_me:remember_me?1:0,
125
                                captcha: oidplus_captcha_response()
125
                                captcha: oidplus_captcha_response()
126
                        },
126
                        },
127
                        error:function(jqXHR, textStatus, errorThrown) {
127
                        error:function(jqXHR, textStatus, errorThrown) {
128
                                if (errorThrown == "abort") return;
128
                                if (errorThrown == "abort") return;
129
                                alert(_L("Error: %1",errorThrown));
129
                                alertError(_L("Error: %1",errorThrown));
130
                                oidplus_captcha_reset();
130
                                oidplus_captcha_reset();
131
                        },
131
                        },
132
                        success:function(data) {
132
                        success:function(data) {
133
                                if ("error" in data) {
133
                                if ("error" in data) {
134
                                        alert(_L("Error: %1",data.error));
134
                                        alertError(_L("Error: %1",data.error));
135
                                        oidplus_captcha_reset();
135
                                        oidplus_captcha_reset();
136
                                } else if (data.status >= 0) {
136
                                } else if (data.status >= 0) {
137
                                        window.location.href = '?goto=oidplus:system';
137
                                        window.location.href = '?goto=oidplus:system';
138
                                        // reloadContent();
138
                                        // reloadContent();
139
                                } else {
139
                                } else {
140
                                        alert(_L("Error: %1",data));
140
                                        alertError(_L("Error: %1",data));
141
                                        oidplus_captcha_reset();
141
                                        oidplus_captcha_reset();
142
                                }
142
                                }
143
                        }
143
                        }
144
                });
144
                });
145
        },
145
        },
Line 162... Line 162...
162
                                plugin:OIDplusPagePublicLogin.oid,
162
                                plugin:OIDplusPagePublicLogin.oid,
163
                                action:"admin_logout",
163
                                action:"admin_logout",
164
                        },
164
                        },
165
                        error:function(jqXHR, textStatus, errorThrown) {
165
                        error:function(jqXHR, textStatus, errorThrown) {
166
                                if (errorThrown == "abort") return;
166
                                if (errorThrown == "abort") return;
167
                                alert(_L("Error: %1",errorThrown));
167
                                alertError(_L("Error: %1",errorThrown));
168
                        },
168
                        },
169
                        success:function(data) {
169
                        success:function(data) {
170
                                if ("error" in data) {
170
                                if ("error" in data) {
171
                                        alert(_L("Error: %1",data.error));
171
                                        alertError(_L("Error: %1",data.error));
172
                                } else if (data.status >= 0) {
172
                                } else if (data.status >= 0) {
173
                                        window.location.href = '?goto=oidplus:system';
173
                                        window.location.href = '?goto=oidplus:system';
174
                                        // reloadContent();
174
                                        // reloadContent();
175
                                } else {
175
                                } else {
176
                                        alert(_L("Error: %1",data));
176
                                        alertError(_L("Error: %1",data));
177
                                }
177
                                }
178
                        }
178
                        }
179
                });
179
                });
180
        },
180
        },
181
 
181