Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#restorepwdform").live("submit", function() {
- var mail = encodeURIComponent($("#restorepwdform #mail").val());
- $.ajax({
- url: siteurl+"ajax.php?act=profile&subact=restorepassword",
- type: "POST",
- data: "mail="+mail,
- dataType: "json",
- cache: false,
- beforeSend: function() {
- $("#error").html("<img align=\"center\" src=\""+templateurl+"img/loader-white.gif\">");
- errorPopup("#error");
- },
- error: function() {
- $("#error").html("Неизвестная ошибка");
- errorPopup("#error");
- setTimeout(function(){
- $("#error").fadeOut(500);
- }, 1500);
- },
- success: function(response) {
- $("#error").html(response.message);
- errorPopup("#error");
- setTimeout(function(){
- $("#error").fadeOut(500);
- }, 1500);
- }
- });
- return false;
- });
Add Comment
Please, Sign In to add comment