function validateStep2() {
return true;
var data = {
'error': true,
'message': "Please required all field."
};
$('#step-2 input').each(function () {
if (!$(this).val() && $(this).val().length <= 0) {
data = {
'error': true,
'message': "Please required all field."
};
}
});
var purchase_code = $("#step-2 input#purchase_code").val();
var app_url = window.location.host + window.location.pathname;
app_url = app_url.replace("install/index.php", "");
app_url = app_url.replace("install/", "");
if (purchase_code !== "" && app_url !== "") {
data = check_purchase_code(purchase_code, app_url);
} else {
data = {
'error': true,
'message': "Please required all field."
};
}
return data;
}