Rev 642 | Rev 1036 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 642 | Rev 833 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | plugin:OIDplusPageAdminAutomatedAJAXCalls.oid, |
35 | plugin:OIDplusPageAdminAutomatedAJAXCalls.oid, |
36 | action:"blacklistJWT" |
36 | action:"blacklistJWT" |
37 | }, |
37 | }, |
38 | error:function(jqXHR, textStatus, errorThrown) { |
38 | error:function(jqXHR, textStatus, errorThrown) { |
39 | if (errorThrown == "abort") return; |
39 | if (errorThrown == "abort") return; |
40 | alert(_L("Error: %1",errorThrown)); |
40 | alertError(_L("Error: %1",errorThrown)); |
41 | }, |
41 | }, |
42 | success:function(data) { |
42 | success:function(data) { |
43 | if ("error" in data) { |
43 | if ("error" in data) { |
44 | alert(_L("Error: %1",data.error)); |
44 | alertError(_L("Error: %1",data.error)); |
45 | } else if (data.status >= 0) { |
45 | } else if (data.status >= 0) { |
46 | alert(_L("OK")); |
46 | alertSuccess(_L("OK")); |
47 | reloadContent(); |
47 | reloadContent(); |
48 | } else { |
48 | } else { |
49 | alert(_L("Error: %1",data)); |
49 | alertError(_L("Error: %1",data)); |
50 | } |
50 | } |
51 | } |
51 | } |
52 | }); |
52 | }); |
53 | } |
53 | } |
54 | 54 |