Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
8c81518c
Commit
8c81518c
authored
Sep 12, 2014
by
Marc Duez
Browse files
database.js : avoid unnecessary reload() after file upload completion
parent
4f98b129
Changes
1
Show whitespace changes
Inline
Side-by-side
browser/js/database.js
View file @
8c81518c
...
...
@@ -445,14 +445,18 @@ Database.prototype = {
/* update upload status */
upload_display
:
function
(){
var
flag
=
false
for
(
var
key
in
this
.
upload
){
if
(
!
this
.
upload
[
key
].
active
){
delete
this
.
upload
[
key
];
this
.
reload
()
if
(
document
.
getElementById
(
"
sequence_file_
"
+
key
)
){
flag
=
true
;
}
}
else
{
$
(
"
#sequence_file_
"
+
key
).
html
(
"
<span class='loading_seq'></span> <span class='button' onclick='db.cancel_upload(
"
+
key
+
"
)'>cancel</span>
"
)
}
}
if
(
flag
)
this
.
reload
();
},
cancel_upload
:
function
(
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