From: dibs Date: Thu, 28 Feb 2013 11:01:19 +0000 (+0900) Subject: [title] Fixed log page about disappear log data. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c567acbeab1aeb8d1ae750f9d1e8c5f2bef2c85e;p=sdk%2Ftools%2Fsdk-build.git [title] Fixed log page about disappear log data. [redmine] #8575 --- 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); });