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
07fb31e2
Commit
07fb31e2
authored
Aug 23, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
floating control panel
parent
13c80c28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
debugfs.js
src/debugfs-webgui/debugfs.js
+18
-5
No files found.
src/debugfs-webgui/debugfs.js
View file @
07fb31e2
...
@@ -40,7 +40,7 @@ function init(){
...
@@ -40,7 +40,7 @@ function init(){
var
b2
=
$
(
"<button>"
,{
var
b2
=
$
(
"<button>"
,{
id
:
"b2"
,
id
:
"b2"
,
title
:
"Apply configuration of the selected files in GUI to DebugFS"
title
:
"Apply configuration of the selected files in GUI to DebugFS"
}).
css
({
margin
:
"0px 0px 0px 10px"
}).
html
(
"Apply to debugfs
(selected files)
"
);
}).
css
({
margin
:
"0px 0px 0px 10px"
}).
html
(
"Apply to debugfs"
);
b2
.
click
(
function
(){
b2
.
click
(
function
(){
$
.
ajax
({
$
.
ajax
({
...
@@ -84,10 +84,21 @@ function init(){
...
@@ -84,10 +84,21 @@ function init(){
}
}
});
});
$
(
"body"
).
append
(
$
(
"<div>"
).
css
({
padding
:
"0px 0px 10px 0px"
}).
append
(
b0
).
append
(
b1
).
append
(
b2
).
append
(
b3
).
append
(
f0
).
append
(
f1
).
append
(
f2
).
append
(
f3
));
$
(
"body"
).
append
(
$
(
"<div>"
,{
id
:
"control_panel"
}).
css
({
padding
:
"15px 20px 20px 20px"
,
background
:
"rgba(100,200,100,1)"
,
position
:
"fixed"
,
"z-index"
:
"100"
,
border
:
"1px solid rgba(180,180,180,0.5)"
}).
append
(
b0
).
append
(
b1
).
append
(
b2
).
append
(
b3
).
append
(
f0
).
append
(
f1
).
append
(
f2
).
append
(
f3
));
var
shift
=
$
(
"#control_panel"
).
outerHeight
(
true
)
+
parseInt
(
$
(
"#control_panel"
).
css
(
"top"
),
10
)
+
2
;
//list header
//list header
var
t
=
$
(
"<table border=
\"
1
\"
>"
).
html
(
"
\
var
t
=
$
(
"<table border=
\"
1
\"
>"
).
css
({
position
:
"absolute"
,
top
:
shift
+
"px"
}).
html
(
"
\
<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>
\
...
@@ -322,9 +333,9 @@ function init_ui_controls(record,index){
...
@@ -322,9 +333,9 @@ function init_ui_controls(record,index){
var
bc0
=
$
(
"<button>"
,{
var
bc0
=
$
(
"<button>"
,{
id
:
"bc0_"
+
index
,
id
:
"bc0_"
+
index
,
title
:
"read config from debugfs - u
seful when changes were made and the line numbers got shifted from the ones in the stored
config"
,
title
:
"read config from debugfs - u
pdates line numbers, keeps checkboxes from current
config"
,
file
:
record
.
file
file
:
record
.
file
}).
css
({
margin
:
"5px 5px 5px 5px"
,
"font-size"
:
"14px"
}).
html
(
"read from debugfs"
);
}).
css
({
margin
:
"5px 5px 5px 5px"
,
"font-size"
:
"14px"
}).
html
(
"read
lines
from debugfs"
);
bc0
.
click
(
function
(){
bc0
.
click
(
function
(){
var
id
=
$
(
this
).
attr
(
"id"
);
var
id
=
$
(
this
).
attr
(
"id"
);
...
@@ -364,6 +375,8 @@ function init_ui_controls(record,index){
...
@@ -364,6 +375,8 @@ function init_ui_controls(record,index){
fill_content
(
oldrec
.
configs
[
j
].
lines
,
id
,
target
);
fill_content
(
oldrec
.
configs
[
j
].
lines
,
id
,
target
);
fill_content_rebind_events
();
fill_content_rebind_events
();
update_debugfs_config
(
id
);
}
}
});
});
});
});
...
...
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