Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
4b52beab
Commit
4b52beab
authored
Aug 18, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+columns for lines
parent
2fd09253
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
debugfs.js
src/debugfs-webgui/debugfs.js
+19
-6
No files found.
src/debugfs-webgui/debugfs.js
View file @
4b52beab
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>"
;
c
ontent
.
find
(
"table"
)
.
append
(
l
);
c
tbl
.
append
(
l
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment