var confirmSubscribe = {
init: () => {
if(location.href.toLowerCase().indexOf('hirlevel-feliratkozas-megerosites') != -1) {
common.addLoaderGif();
if(location.search.split("hash=")[1] == undefined) {
$(".confirmSubscribeContainer").html("
Ismeretlen eredetű hiba!
");
$("#loading").hide();
}else {
$.ajax({
url: "/Home/ActivateSubscriber",
method: "post",
data: { hash: location.search.split("hash=")[1] },
error: function (result) {
},
success: function (result) {
},
complete: function (result) {
if(result.responseText == "DELETED") {
$(".confirmSubscribeContainer").html("Hiba az aktiválás során, a felhasználót már törölték!
");
}else if(result.responseText == "OK"){
$(".confirmSubscribeContainer").html("Sikeresen megerősítette a feliratkozását!
");
}else {
$(".confirmSubscribeContainer").html("Ismeretlen eredetű hiba!
");
}
$("#loading").hide();
}
});
}
}
},
};
$(document).ready(() => {
confirmSubscribe.init();
});