修复几个bug

This commit is contained in:
2016-08-04 00:10:28 +08:00
parent 8094b9249a
commit 87a1068dec
2 changed files with 18 additions and 16 deletions

View File

@@ -222,11 +222,12 @@ $(function() {
} else {
updateAlert(data.msg);
setTimeout(function() {
if (data.url) {
location.href = data.url;
} else {
$('#top-alert').find('button').click();
}
location.reload();
// if (data.url) {
// location.href = data.url;
// } else {
// $('#top-alert').find('button').click();
// }
}, 1500);
}
});
@@ -304,11 +305,12 @@ $(function() {
updateAlert(data.msg, 'danger');
setTimeout(function() {
$(that).removeClass('disabled').prop('disabled', false);
if (data.url) {
location.href = data.url;
} else {
$('#top-alert').find('button').click();
}
location.reload();
// if (data.url) {
// location.href = data.url;
// } else {
// $('#top-alert').find('button').click();
// }
}, 1500);
}
});