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
a2ab5a9f
Commit
a2ab5a9f
authored
Feb 15, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep settings checkbox
parent
bc8e3690
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
update_nand.php
src/update/update_nand.php
+4
-1
update_software.html
src/update/update_software.html
+3
-0
update_software.js
src/update/update_software.js
+5
-1
No files found.
src/update/update_nand.php
View file @
a2ab5a9f
...
...
@@ -251,12 +251,15 @@ switch($cmd){
$flash_list
=
verify
(
false
);
backup
();
nandflash
(
$flash_list
);
copy_backup
();
if
(
isset
(
$_GET
[
'restore'
]))
copy_backup
();
break
;
case
"backup"
:
backup
();
send_backup
();
break
;
case
"restore"
:
copy_backup
();
break
;
case
"remove"
:
remove
();
break
;
...
...
src/update/update_software.html
View file @
a2ab5a9f
...
...
@@ -38,6 +38,9 @@
<span
id=
'btn_flash'
class=
"btn btn-danger"
><b>
Flash
</b></span>
<span
style=
'padding-left:10px;'
><a
href=
'var/flash.log'
>
flash.log
</a></span>
</div>
<div
style=
'padding-left:10px;'
>
<span>
Keep old settings:
</span>
<input
type=
'checkbox'
id=
'chk_restore'
style=
'width:20px;height:20px;position:relative;top:3px;'
checked
>
</div>
<div
style=
'padding:10px;'
>
<div
id=
'status'
class=
'blink'
></div>
</div>
...
...
src/update/update_software.js
View file @
a2ab5a9f
...
...
@@ -67,10 +67,14 @@ function init(){
});
$
(
'#btn_flash'
).
click
(
function
(){
var
restore
=
""
;
if
(
$
(
"#chk_restore"
).
prop
(
"checked"
))
restore
=
"&restore"
;
$
(
"#status"
).
html
(
"Flashing..."
);
blink_intvl
=
setInterval
(
blink
,
1000
);
$
.
ajax
({
url
:
"update_nand.php?cmd=flash"
,
url
:
"update_nand.php?cmd=flash"
+
restore
,
success
:
function
(
result
){
clearInterval
(
blink_intvl
);
$
(
"#status"
).
html
(
result
);
...
...
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