|
|
|
@ -244,6 +244,25 @@ wsPost('get_global_conf', '' ,{}, function(rdata){ |
|
|
|
|
wsGlobalSetting(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#setAll').click(function(){ |
|
|
|
|
var args = "name=webstats&func=reload"; |
|
|
|
|
layer.confirm('您真的要同步所有站点吗?', {icon:3,closeBtn: 2}, function() { |
|
|
|
|
var e = layer.msg('正在同步,请稍候...', {icon: 16,time: 0}); |
|
|
|
|
$.post("/plugins/run", args, function(g) { |
|
|
|
|
layer.close(e); |
|
|
|
|
if( g.status && g.data != 'ok' ) { |
|
|
|
|
layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true}); |
|
|
|
|
} else { |
|
|
|
|
layer.msg('同步成功!', {icon: 1,time: 0}); |
|
|
|
|
} |
|
|
|
|
},'json').error(function() { |
|
|
|
|
layer.close(e); |
|
|
|
|
layer.msg('操作异常!', {icon: 1}); |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
///////////////////////////////////////////////
|
|
|
|
|