$(document).ready(function(){
$(".identification-modal").on("click", function() {
$(".coupon-popup-wrapepr .align-items-center").html('
');
/* Authentication tab */
$(".authentication-header ul li").on("click", function() {
var tab_modal = $(this).attr("data-authentication-list");
$(this).addClass("active").siblings().removeClass("active");
$(".authentication-form-box-item[data-authentication-item=" +tab_modal+ "]").addClass("active").siblings().removeClass("active");
});
$(".coupon-popup-wrapepr").addClass("active");
$.ajax({
type: "GET",
url: "/register/?partial=1",
success: function(res) {
$(".coupon-popup-wrapepr .authentication-form-box .register-form-box").html(res);
},
error:function(request, status, error) {
console.log("ajax call went wrong:" + request.responseText);
}
});
$.ajax({
type: "GET",
url: "/login?partial=1",
success: function(res) {
$(".coupon-popup-wrapepr .authentication-form-box .login-form-box").html(res);
},
error:function(request, status, error) {
console.log("ajax call went wrong:" + request.responseText);
}
});
$.ajax({
type: "GET",
url: "/resetting/request?partial=1",
success: function(res) {
$(".coupon-popup-wrapepr .authentication-form-box .forgot-password-form-box").html(res);
},
error:function(request, status, error) {
console.log("ajax call went wrong:" + request.responseText);
}
});
});
});