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
Mihkel Putrinš
panustaja
Commits
22d35fe7
Commit
22d35fe7
authored
Nov 23, 2015
by
Mihkel Putrinš
Browse files
fix
parent
a4dd882a
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/upload.js
View file @
22d35fe7
...
@@ -33,6 +33,8 @@ function upload() {
...
@@ -33,6 +33,8 @@ function upload() {
recurseResources
(
resource_root_eid
,
resource
,
resourcesCreated
)
recurseResources
(
resource_root_eid
,
resource
,
resourcesCreated
)
}
}
var
file_upload_tasks
=
[]
function
resourcesCreated
(
err
)
{
function
resourcesCreated
(
err
)
{
if
(
err
)
{
throw
(
err
)
}
if
(
err
)
{
throw
(
err
)
}
async
.
parallelLimit
(
file_upload_tasks
,
3
,
function
filesUploaded
()
{
async
.
parallelLimit
(
file_upload_tasks
,
3
,
function
filesUploaded
()
{
...
@@ -77,9 +79,6 @@ function renderProgress() {
...
@@ -77,9 +79,6 @@ function renderProgress() {
var
file_upload_tasks
=
[]
function
createEntuResource
(
parent_eid
,
resource
,
callback
)
{
function
createEntuResource
(
parent_eid
,
resource
,
callback
)
{
console
.
log
(
'
create under EID:
'
,
parent_eid
)
console
.
log
(
'
create under EID:
'
,
parent_eid
)
var
xhr
=
new
window
.
XMLHttpRequest
()
var
xhr
=
new
window
.
XMLHttpRequest
()
...
...
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