fix
This commit is contained in:
@@ -21,6 +21,7 @@ function saveStep1(e) {
|
||||
url: url
|
||||
},
|
||||
success: function (data) {
|
||||
var c = 0;
|
||||
setInterval(function () {
|
||||
$.ajax({
|
||||
url: data,
|
||||
@@ -30,8 +31,16 @@ function saveStep1(e) {
|
||||
window.location = data.url;
|
||||
} else {
|
||||
if (data.text !== "") {
|
||||
alert(data.text);
|
||||
window.location.reload(true);
|
||||
if (data.text === "error") {
|
||||
c++;
|
||||
if (c == 5) {
|
||||
alert("Box chưa được đăng kí trên CMS!");
|
||||
window.location.reload(true);
|
||||
}
|
||||
} else {
|
||||
alert(data.text);
|
||||
window.location.reload(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user