Update public.js

This commit is contained in:
midoks 2022-11-16 01:09:33 +08:00
parent 85077a5d2f
commit 1458d67d93
1 changed files with 3 additions and 3 deletions

View File

@ -1610,9 +1610,9 @@ function remove_ssh_menu() {
//显示进度
function showSpeed(filename) {
$.post('/files/get_last_body', { num: 10,path: filename}, function (rdata) {
// if ($("#speed_log_lst").text() == ''){
// return;
// }
if ($("#speed_log_lst").length < 1){
return;
}
if (rdata.status) {
$("#speed_log_lst").html(rdata.data);
$("#speed_log_lst").scrollTop($("#speed_log_lst")[0].scrollHeight);