Rev 320 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 320 | Rev 360 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | action: "change_ra_email", |
24 | action: "change_ra_email", |
25 | old_email: $("#old_email").val(), |
25 | old_email: $("#old_email").val(), |
26 | new_email: $("#new_email").val(), |
26 | new_email: $("#new_email").val(), |
27 | }, |
27 | }, |
28 | error:function(jqXHR, textStatus, errorThrown) { |
28 | error:function(jqXHR, textStatus, errorThrown) { |
29 | alert("Error: " + errorThrown); |
29 | alert(_L("Error: %1",errorThrown)); |
30 | }, |
30 | }, |
31 | success: function(data) { |
31 | success: function(data) { |
32 | if ("error" in data) { |
32 | if ("error" in data) { |
33 | alert("Error: " + data.error); |
33 | alert(_L("Error: %1",data.error)); |
34 | } else if (data.status == 0) { |
34 | } else if (data.status == 0) { |
35 | if (isadmin) { |
35 | if (isadmin) { |
36 | alert("eMail adress of RA changed"); |
36 | alert(_L("eMail address of RA changed")); |
37 | //openOidInPanel('oidplus:rainfo$'+$("#new_email").val(),true); |
37 | //openOidInPanel('oidplus:rainfo$'+$("#new_email").val(),true); |
38 | // We need to reload the whole page, because the tree at the left contains a "List RA" list with the RAs |
38 | // We need to reload the whole page, because the tree at the left contains a "List RA" list with the RAs |
39 | window.location.href = '?goto='+encodeURIComponent('oidplus:rainfo$'+$("#new_email").val()); |
39 | window.location.href = '?goto='+encodeURIComponent('oidplus:rainfo$'+$("#new_email").val()); |
40 | } else { |
40 | } else { |
41 | alert("Verification eMail sent"); |
41 | alert(_L("Verification eMail sent")); |
42 | //window.location.href = '?goto=oidplus:system'; |
42 | //window.location.href = '?goto=oidplus:system'; |
43 | //reloadContent(); |
43 | //reloadContent(); |
44 | } |
44 | } |
45 | } else { |
45 | } else { |
46 | alert("Error: " + data); |
46 | alert(_L("Error: %1",data)); |
47 | } |
47 | } |
48 | } |
48 | } |
49 | }); |
49 | }); |
50 | return false; |
50 | return false; |
51 | } |
51 | } |
Line 62... | Line 62... | ||
62 | new_email: $("#new_email").val(), |
62 | new_email: $("#new_email").val(), |
63 | auth: $("#auth").val(), |
63 | auth: $("#auth").val(), |
64 | timestamp: $("#timestamp").val() |
64 | timestamp: $("#timestamp").val() |
65 | }, |
65 | }, |
66 | error:function(jqXHR, textStatus, errorThrown) { |
66 | error:function(jqXHR, textStatus, errorThrown) { |
67 | alert("Error: " + errorThrown); |
67 | alert(_L("Error: %1",errorThrown)); |
68 | }, |
68 | }, |
69 | success: function(data) { |
69 | success: function(data) { |
70 | if ("error" in data) { |
70 | if ("error" in data) { |
71 | alert("Error: " + data.error); |
71 | alert(_L("Error: %1",data.error)); |
72 | } else if (data.status == 0) { |
72 | } else if (data.status == 0) { |
73 | alert("Done"); |
73 | alert(_L("Done")); |
74 | window.location.href = '?goto=oidplus:system'; |
74 | window.location.href = '?goto=oidplus:system'; |
75 | //reloadContent(); |
75 | //reloadContent(); |
76 | } else { |
76 | } else { |
77 | alert("Error: " + data); |
77 | alert(_L("Error: %1",data)); |
78 | } |
78 | } |
79 | } |
79 | } |
80 | }); |
80 | }); |
81 | return false; |
81 | return false; |
82 | } |
82 | } |