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 26... | Line 26... | ||
26 | old_password: $("#old_password").val(), |
26 | old_password: $("#old_password").val(), |
27 | new_password1: $("#new_password1").val(), |
27 | new_password1: $("#new_password1").val(), |
28 | new_password2: $("#new_password2").val() |
28 | new_password2: $("#new_password2").val() |
29 | }, |
29 | }, |
30 | error:function(jqXHR, textStatus, errorThrown) { |
30 | error:function(jqXHR, textStatus, errorThrown) { |
31 | alert("Error: " + errorThrown); |
31 | alert(_L("Error: %1",errorThrown)); |
32 | }, |
32 | }, |
33 | success: function(data) { |
33 | success: function(data) { |
34 | if ("error" in data) { |
34 | if ("error" in data) { |
35 | alert("Error: " + data.error); |
35 | alert(_L("Error: %1",data.error)); |
36 | } else if (data.status == 0) { |
36 | } else if (data.status == 0) { |
37 | alert("Done"); |
37 | alert(_L("Done")); |
38 | //window.location.href = '?goto=oidplus:system'; |
38 | //window.location.href = '?goto=oidplus:system'; |
39 | //reloadContent(); |
39 | //reloadContent(); |
40 | } else { |
40 | } else { |
41 | alert("Error: " + data); |
41 | alert(_L("Error: %1",data)); |
42 | } |
42 | } |
43 | } |
43 | } |
44 | }); |
44 | }); |
45 | return false; |
45 | return false; |
46 | } |
46 | } |