Subversion Repositories oidplus

Rev

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

Rev 642 Rev 833
Line 39... Line 39...
39
                                action:"delete_ra",
39
                                action:"delete_ra",
40
                                email:email,
40
                                email:email,
41
                        },
41
                        },
42
                        error:function(jqXHR, textStatus, errorThrown) {
42
                        error:function(jqXHR, textStatus, errorThrown) {
43
                                if (errorThrown == "abort") return;
43
                                if (errorThrown == "abort") return;
44
                                alert(_L("Error: %1",errorThrown));
44
                                alertError(_L("Error: %1",errorThrown));
45
                        },
45
                        },
46
                        success:function(data) {
46
                        success:function(data) {
47
                                if ("error" in data) {
47
                                if ("error" in data) {
48
                                        alert(_L("Error: %1",data.error));
48
                                        alertError(_L("Error: %1",data.error));
49
                                } else if (data.status >= 0) {
49
                                } else if (data.status >= 0) {
50
                                        alert(_L("Done"));
50
                                        alertSuccess(_L("Done"));
51
                                        if (goto != null) {
51
                                        if (goto != null) {
52
                                                $("#gotoedit").val(goto);
52
                                                $("#gotoedit").val(goto);
53
                                                window.location.href = "?goto="+encodeURIComponent(goto);
53
                                                window.location.href = "?goto="+encodeURIComponent(goto);
54
                                        }
54
                                        }
55
                                        // reloadContent();
55
                                        // reloadContent();
56
                                } else {
56
                                } else {
57
                                        alert(_L("Error: %1",data.error));
57
                                        alertError(_L("Error: %1",data.error));
58
                                }
58
                                }
59
                        }
59
                        }
60
                });
60
                });
61
        }
61
        }
62
 
62