Browse Source

fix issue

tags/v1.22.11.1^2
zhoupzh 2 years ago
parent
commit
5c0bc2fba5
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      web_src/js/features/cloudbrainShow.js

+ 4
- 4
web_src/js/features/cloudbrainShow.js View File

@@ -14,7 +14,7 @@ export default async function initCloudrainSow() {
};
}

function logScroll(version_name, repoPath, ID, max = "", lines = 50) {
function logScroll(version_name, repoPath, ID, max = "", lines = 60) {
console.log("----------");
let container = document.querySelector(`#log${max}${version_name}`);
let scrollTop = container.scrollTop;
@@ -143,7 +143,7 @@ export default async function initCloudrainSow() {

function logTop(e) {
let max = e.currentTarget.getAttribute("data-max") || "";
let lines = !!max ? 100 : 50;
let lines = !!max ? 100 : 60;
let version_name = $(this).data("version");
let logContentDom = document.querySelector(`#log${max}${version_name}`);
let ID = $(`#accordion${version_name}`).data("jobid");
@@ -191,7 +191,7 @@ export default async function initCloudrainSow() {
}
function logBottom(e) {
let max = e.currentTarget.getAttribute("data-max") || "";
let lines = !!max ? 100 : 50;
let lines = !!max ? 100 : 60;
let version_name = $(this).data("version");
let logContentDom = document.querySelector(`#log${max}${version_name}`);
let ID = $(`#accordion${version_name}`).data("jobid");
@@ -339,7 +339,7 @@ export default async function initCloudrainSow() {
let startLine = $(
`#log${version_name} input[name=start_line-max-copy]`
).val();
$(`#log-file-max${version_name}`).siblings("pre").remove();
$(`#log_file-max${version_name}`).siblings("pre").remove();
$(`#log${version_name} input[name=start_line-max]`).val(startLine);

$(".log-scroll-max").unbind("scroll");


Loading…
Cancel
Save