From 1458d67d93cee51648e14e192db264e8e95d87d0 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 16 Nov 2022 01:09:33 +0800 Subject: [PATCH] Update public.js --- route/static/app/public.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/route/static/app/public.js b/route/static/app/public.js index 85164a042..64c109c81 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -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);