延迟更新

hotfix/远程访问多媒体中心
尹诚诚 6 years ago
parent 20709b6b26
commit be0ccc11b6

@ -4,7 +4,6 @@
function batch_update_cache(url, index) {
var msg_obj="#cache" + index;
$(msg_obj).html("\u7a0d\u7b49...");
$.ajax({
type: "post",
dataType: "json",
@ -32,7 +31,8 @@ function batch_update_cache(url, index) {
function create_cache_data(index){
if ($('#cache_url' + index).length > 0) {
if ($('#cache' + index).html() != '\u66f4\u65b0\u9759\u6001\u9875\u9762\u6210\u529f\uff01') {
setTimeout(batch_update_cache($('#cache_url' + index).html(),index),5000);
url=$('#cache_url' + index).html();
setTimeout("batch_update_cache('"+url+"',"+index+")",5000);
}
}
}

@ -67,7 +67,7 @@
if ($('#cache' + index).html() == '手动管理,不会自动更新') { //手动更新的项目跳过
create_amp_data(++index);
} else {
setTimeout(batch_update_amp(index),5000);
setTimeout("batch_update_amp("+index+")",5000);
}
}
}

Loading…
Cancel
Save