\n\
×\n\
' + data.msg + ''
);
}
// window.location = data.url;
},
error: function(jqXhr) {
if (jqXhr.status === 422) {
//process validation errors here.
var errors = jqXhr.responseJSON
.errors; //this will get the errors response data.
$.each(errors, function(key, value) {
$(".form-group")
.find("[name='" + key + "']")
.closest(".form-group")
.removeClass("has-success")
.addClass("has-error");
$(".form-group")
.find("[name='" + key + "']")
.parent()
.append(
'' +
value[0] + ""
);
});
MasterAffiliate.stopWaitMe($("body"));
}
},
complete: function() {
MasterAffiliate.stopWaitMe($("body"));
},
});
});
});