Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debugfs-webgui
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
debugfs-webgui
Commits
603b27b5
Commit
603b27b5
authored
Sep 09, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved up config menus
parent
b5c95192
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
debugfs.js
debugfs.js
+14
-7
No files found.
debugfs.js
View file @
603b27b5
...
@@ -111,6 +111,7 @@ function init(){
...
@@ -111,6 +111,7 @@ function init(){
<tr>
\
<tr>
\
<th style='display:none;' class='hidden_rows'>Show</th>
\
<th style='display:none;' class='hidden_rows'>Show</th>
\
<th>File</th>
\
<th>File</th>
\
<th>Config</th>
\
</tr>
\
</tr>
\
"
);
"
);
...
@@ -129,9 +130,11 @@ function init(){
...
@@ -129,9 +130,11 @@ function init(){
//file walk
//file walk
for
(
var
i
=
0
;
i
<
r
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
r
.
length
;
i
++
){
l
=
init_ui_file
(
r
[
i
],
i
);
l
=
init_ui_file
(
r
[
i
],
i
);
content
=
init_ui_content
(
r
[
i
],
i
);
t
.
append
(
l
);
controls
=
init_ui_controls
(
r
[
i
],
i
);
controls
=
init_ui_controls
(
r
[
i
],
i
);
t
.
append
(
l
).
append
(
controls
).
append
(
content
);
t
.
append
(
controls
);
content
=
init_ui_content
(
r
[
i
],
i
);
t
.
append
(
content
);
j
=
init_ui_dropdown
(
r
[
i
],
i
);
j
=
init_ui_dropdown
(
r
[
i
],
i
);
if
(
r
[
i
].
file
==
"drivers/elphel/framepars.c"
){
if
(
r
[
i
].
file
==
"drivers/elphel/framepars.c"
){
...
@@ -289,6 +292,7 @@ function init_ui_file(record,index){
...
@@ -289,6 +292,7 @@ function init_ui_file(record,index){
<input id='cb_"
+
index
+
"' class='tp visibility_cb' type='checkbox' index='"
+
index
+
"' >
\
<input id='cb_"
+
index
+
"' class='tp visibility_cb' type='checkbox' index='"
+
index
+
"' >
\
</td>
\
</td>
\
<td class='special filename' id='header_"
+
index
+
"' index='"
+
index
+
"' >"
+
record
.
file
+
"</td>
\
<td class='special filename' id='header_"
+
index
+
"' index='"
+
index
+
"' >"
+
record
.
file
+
"</td>
\
<td class='special' id='conf_"
+
index
+
"' index='"
+
index
+
"' ></td>
\
"
);
"
);
if
(
record
.
state
==
0
){
if
(
record
.
state
==
0
){
...
@@ -316,7 +320,7 @@ function init_ui_content(record,index){
...
@@ -316,7 +320,7 @@ function init_ui_content(record,index){
content
.
append
(
content
.
append
(
$
(
"<td>"
).
addClass
(
"hidden_rows"
).
hide
()
$
(
"<td>"
).
addClass
(
"hidden_rows"
).
hide
()
).
append
(
).
append
(
$
(
"<td>"
,{
id
:
"content_td"
})
$
(
"<td>"
,{
id
:
"content_td"
,
colspan
:
"2"
})
);
);
return
content
;
return
content
;
...
@@ -337,7 +341,7 @@ function init_ui_controls(record,index){
...
@@ -337,7 +341,7 @@ function init_ui_controls(record,index){
controls
.
append
(
controls
.
append
(
$
(
"<td>"
).
addClass
(
"hidden_rows"
).
hide
()
$
(
"<td>"
).
addClass
(
"hidden_rows"
).
hide
()
).
append
(
).
append
(
$
(
"<td>"
,{
id
:
"controls_td"
})
$
(
"<td>"
,{
id
:
"controls_td"
,
colspan
:
"2"
})
);
);
var
bc0
=
$
(
"<button>"
,{
var
bc0
=
$
(
"<button>"
,{
...
@@ -390,7 +394,7 @@ function init_ui_controls(record,index){
...
@@ -390,7 +394,7 @@ function init_ui_controls(record,index){
});
});
});
});
var
pre_bc1
=
$
(
"<span>"
,{
title
:
"Current config name"
}).
html
(
"
config:
"
);
var
pre_bc1
=
$
(
"<span>"
,{
title
:
"Current config name"
}).
html
(
""
);
var
dc0_b
=
$
(
"<button>"
,{
var
dc0_b
=
$
(
"<button>"
,{
class
:
"btn btn-default btn-sm btn-success dropdown-toggle"
,
class
:
"btn btn-default btn-sm btn-success dropdown-toggle"
,
...
@@ -461,7 +465,9 @@ function init_ui_controls(record,index){
...
@@ -461,7 +465,9 @@ function init_ui_controls(record,index){
var
dc0
=
$
(
"<div>"
,{
class
:
"btn-group"
,
role
:
"group"
}).
append
(
dc0_b
).
append
(
dc0_ul
);
var
dc0
=
$
(
"<div>"
,{
class
:
"btn-group"
,
role
:
"group"
}).
append
(
dc0_b
).
append
(
dc0_ul
);
controls
.
find
(
"#controls_td"
).
append
(
bc0
).
append
(
pre_bc1
).
append
(
dc0
);
controls
.
find
(
"#controls_td"
).
append
(
bc0
);
//.append(pre_bc1).append(dc0);
$
(
"#conf_"
+
index
).
append
(
pre_bc1
).
append
(
dc0
);
return
controls
;
return
controls
;
}
}
...
@@ -508,7 +514,8 @@ function dropdown_add_list_item(record,index,j){
...
@@ -508,7 +514,8 @@ function dropdown_add_list_item(record,index,j){
dropdown_select_config
(
index
,
confindex
);
dropdown_select_config
(
index
,
confindex
);
});
});
$
(
"#controls_"
+
index
).
find
(
"ul"
).
append
(
lentry
);
//$("#controls_"+index).find("ul").append(lentry);
$
(
"#conf_"
+
index
).
find
(
"ul"
).
append
(
lentry
);
}
}
function
dropdown_select_config
(
index
,
config_index
){
function
dropdown_select_config
(
index
,
config_index
){
...
...
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