[add] Simple redirect
This commit is contained in:
parent
d4135188bd
commit
7cf083a612
@ -18,7 +18,7 @@ console.log(getbaseUrl('html/'));
|
|||||||
success:function(data){
|
success:function(data){
|
||||||
console.log(JSON.stringify(data));
|
console.log(JSON.stringify(data));
|
||||||
if(data["status"] == "success"){
|
if(data["status"] == "success"){
|
||||||
console.log("yhi");
|
redirect("http://stackoverflow.com");
|
||||||
}else if(data["status"] == "success" || (data["status"] === undefined)){
|
}else if(data["status"] == "success" || (data["status"] === undefined)){
|
||||||
$('#modalLoginError').modal('show');
|
$('#modalLoginError').modal('show');
|
||||||
document.getElementById('modalLoginErrorBody').innerHTML = "The server didn't respond in time, please try again or refresh this page.";
|
document.getElementById('modalLoginErrorBody').innerHTML = "The server didn't respond in time, please try again or refresh this page.";
|
||||||
@ -31,4 +31,8 @@ console.log(getbaseUrl('html/'));
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function redirect(url){
|
||||||
|
window.location.replace(url);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user