From c567acbeab1aeb8d1ae750f9d1e8c5f2bef2c85e Mon Sep 17 00:00:00 2001 From: dibs Date: Thu, 28 Feb 2013 20:01:19 +0900 Subject: [PATCH] [title] Fixed log page about disappear log data. [redmine] #8575 --- dibs-web/public/javascripts/log.js | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/dibs-web/public/javascripts/log.js b/dibs-web/public/javascripts/log.js index 9dcbed2..be17b7a 100644 --- a/dibs-web/public/javascripts/log.js +++ b/dibs-web/public/javascripts/log.js @@ -106,34 +106,22 @@ function queryLog() /* Insert data */ $(xml).find("Data").find("LogData").each(function() { - var insertTable = document.getElementById("log-contents"); - var insertRow = document.createElement("tr"); - var insertCel1 = document.createElement("td"); - var insertCel2 = document.createElement("td"); - var line_number = $(this).attr("Line"); var line_data = $(this).text(); - - insertCel1.width = '30'; - insertCel1.style.textAlign = 'right'; - insertCel1.style.cellpacing = '5'; - insertCel1.innerHTML = line_number; + + var row = '' + line_number + '' + + '' + line_data + ''; + $("#log-contents").append(row); last_line = line_number; - - insertCel2.style.textAlign = 'left'; - insertCel2.innerHTML = line_data; - - insertRow.appendChild(insertCel1); - insertRow.appendChild(insertCel2); - - insertTable.appendChild(insertRow); - }); if(working_status == 1){ console.log("scroll"); scrollToBottom(); } + console.log("next_line :" +next_line); + console.log("conti :" +conti); + console.log("working_status :"+working_status); autoQueryLog(conti, working_status); }); -- 2.34.1