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 38... | Line 38... | ||
38 | password1: $("#password1").val(), |
38 | password1: $("#password1").val(), |
39 | password2: $("#password2").val() |
39 | password2: $("#password2").val() |
40 | }, |
40 | }, |
41 | error:function(jqXHR, textStatus, errorThrown) { |
41 | error:function(jqXHR, textStatus, errorThrown) { |
42 | if (errorThrown == "abort") return; |
42 | if (errorThrown == "abort") return; |
43 | alert(_L("Error: %1",errorThrown)); |
43 | alertError(_L("Error: %1",errorThrown)); |
44 | }, |
44 | }, |
45 | success: function(data) { |
45 | success: function(data) { |
46 | if ("error" in data) { |
46 | if ("error" in data) { |
47 | alert(_L("Error: %1",data.error)); |
47 | alertError(_L("Error: %1",data.error)); |
48 | } else if (data.status >= 0) { |
48 | } else if (data.status >= 0) { |
49 | alert(_L("Account created")); |
49 | alertSuccess(_L("Account created")); |
50 | //openOidInPanel('oidplus:rainfo$'+$("#email").val(),true); |
50 | //openOidInPanel('oidplus:rainfo$'+$("#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$'+$("#email").val()); |
52 | window.location.href = '?goto='+encodeURIComponent('oidplus:rainfo$'+$("#email").val()); |
53 | } else { |
53 | } else { |
54 | alert(_L("Error: %1",data)); |
54 | alertError(_L("Error: %1",data)); |
55 | } |
55 | } |
56 | } |
56 | } |
57 | }); |
57 | }); |
58 | return false; |
58 | return false; |
59 | } |
59 | } |