Update public.js

pull/267/head
midoks 3 years ago
parent 85077a5d2f
commit 1458d67d93
  1. 6
      route/static/app/public.js

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

Loading…
Cancel
Save