fix
This commit is contained in:
parent
ff36e5200b
commit
e7f590d014
|
@ -297,7 +297,7 @@ class ConfigController extends Controller {
|
||||||
]
|
]
|
||||||
])), true);
|
])), true);
|
||||||
if (!$tempConfig['status'])
|
if (!$tempConfig['status'])
|
||||||
return ['status' => false, 'text' => ''];
|
return ['status' => false, 'text' => 'error'];
|
||||||
|
|
||||||
if ($tempConfig['data'] === "")
|
if ($tempConfig['data'] === "")
|
||||||
return ['status' => false, 'text' => 'Cấu hình ip chưa đúng!'];
|
return ['status' => false, 'text' => 'Cấu hình ip chưa đúng!'];
|
||||||
|
|
|
@ -21,6 +21,7 @@ function saveStep1(e) {
|
||||||
url: url
|
url: url
|
||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
|
var c = 0;
|
||||||
setInterval(function () {
|
setInterval(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: data,
|
url: data,
|
||||||
|
@ -30,10 +31,18 @@ function saveStep1(e) {
|
||||||
window.location = data.url;
|
window.location = data.url;
|
||||||
} else {
|
} else {
|
||||||
if (data.text !== "") {
|
if (data.text !== "") {
|
||||||
|
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);
|
alert(data.text);
|
||||||
window.location.reload(true);
|
window.location.reload(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
error: function (jqXHR, textStatus, errorThrown) {
|
||||||
common.ajaxError();
|
common.ajaxError();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user