Rev 642 | Rev 962 | 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 | new_password1: $("#new_password1").val(), |
39 | new_password1: $("#new_password1").val(), |
40 | new_password2: $("#new_password2").val() |
40 | new_password2: $("#new_password2").val() |
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 | //window.location.href = '?goto=oidplus:system'; |
51 | //window.location.href = '?goto=oidplus:system'; |
52 | //reloadContent(); |
52 | //reloadContent(); |
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 | } |