Subversion Repositories oidplus

Rev

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

Rev 833 Rev 1036
Line 34... Line 34...
34
                                csrf_token:csrf_token,
34
                                csrf_token:csrf_token,
35
                                plugin:OIDplusPageRaAutomatedAJAXCalls.oid,
35
                                plugin:OIDplusPageRaAutomatedAJAXCalls.oid,
36
                                action:"blacklistJWT",
36
                                action:"blacklistJWT",
37
                                user:user
37
                                user:user
38
                        },
38
                        },
39
                        error:function(jqXHR, textStatus, errorThrown) {
-
 
40
                                if (errorThrown == "abort") return;
39
                        error: oidplus_ajax_error,
41
                                alertError(_L("Error: %1",errorThrown));
-
 
42
                        },
-
 
43
                        success:function(data) {
40
                        success: function (data) {
44
                                if ("error" in data) {
-
 
45
                                        alertError(_L("Error: %1",data.error));
-
 
46
                                } else if (data.status >= 0) {
41
                                oidplus_ajax_success(data, function (data) {
47
                                        alertSuccess(_L("OK"));
42
                                        alertSuccess(_L("OK"));
48
                                        reloadContent();
43
                                        reloadContent();
49
                                } else {
-
 
50
                                        alertError(_L("Error: %1",data));
-
 
51
                                }
44
                                });
52
                        }
45
                        }
53
                });
46
                });
54
        }
47
        }
55
 
48
 
56
};
49
};