Commit 4b52beab authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

+columns for lines

parent 2fd09253
var CUT_STRING_LIMIT = 20; var CUT_STRING_LIMIT = 20;
var NLINES = 30;
var debugfs_data; var debugfs_data;
...@@ -72,18 +73,30 @@ function init(){ ...@@ -72,18 +73,30 @@ function init(){
content.append( content.append(
$("<td>").addClass("hidden_rows").hide() $("<td>").addClass("hidden_rows").hide()
).append( ).append(
$("<td>").append( $("<td>",{id:"content_td"})
$("<table>").css({margin:"5px"})
)
); );
//$("<table>").css({margin:"5px"})
//.append($("<td>").addClass("hidden_rows").css({display:"none"})) //.append($("<td>").addClass("hidden_rows").css({display:"none"}))
t.append(l).append(content); t.append(l).append(content);
var r1 = r[i].configs[0].lines; var r1 = r[i].configs[0].lines;
var table_index=0;
for (var j=0;j<r1.length;j++){ for (var j=0;j<r1.length;j++){
table_index = Math.floor(j/NLINES);
if (j%2==0) oddeven = "even";
else oddeven = "odd";
//create those tables?!
if (content.find("#ctbl_"+table_index).length==0) {
ctbl = $("<table>",{id:"ctbl_"+table_index}).css({margin:"5px 30px 5px 5px",display:"inline"});
content.find("#content_td").append(ctbl);
}
ttl = "module: "+r1[j].module+"\n"; ttl = "module: "+r1[j].module+"\n";
ttl += "function: "+r1[j].function+"\n"; ttl += "function: "+r1[j].function+"\n";
...@@ -101,13 +114,13 @@ function init(){ ...@@ -101,13 +114,13 @@ function init(){
if (r1[j].format.length>CUT_STRING_LIMIT) cut_format = "..."; if (r1[j].format.length>CUT_STRING_LIMIT) cut_format = "...";
else cut_format = ""; else cut_format = "";
l = "<tr>"; l = "<tr class='"+oddeven+"'>";
l += " <td style='text-align:center' title='"+ttl+"'>"+r1[j].lineno+"</td>"; l += " <td style='text-align:center' title='"+ttl+"'>"+r1[j].lineno+"</td>";
l += " <td style='text-align:center'><input type='checkbox' class='tp debug' "+checked+" file='"+r1[j].file+"' line='"+r1[j].lineno+"' /></td>"; l += " <td style='text-align:center'><input type='checkbox' class='tp debug' "+checked+" file='"+r1[j].file+"' line='"+r1[j].lineno+"' /></td>";
l += " <td>"+r1[j].function.substr(0,20)+"...</td>"; l += " <td>"+r1[j].function.substr(0,20)+"...</td>";
l += " <td>"+r1[j].format.substr(0,20)+"...</td>"; l += " <td>"+r1[j].format.substr(0,20)+"...</td>";
l += "</tr>"; l += "</tr>";
content.find("table").append(l); ctbl.append(l);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment