return ids after upload, fixes #162
This commit is contained in:
parent
97ef26f7e7
commit
d0a9515cc0
1 changed files with 2 additions and 2 deletions
|
@ -1044,9 +1044,9 @@ oml.upload = function(fileslist, callback) {
|
||||||
request.onreadystatechange = function() {
|
request.onreadystatechange = function() {
|
||||||
if (request.readyState == 4) {
|
if (request.readyState == 4) {
|
||||||
if (request.status == 200) {
|
if (request.status == 200) {
|
||||||
next();
|
|
||||||
var response = JSON.parse(request.responseText);
|
var response = JSON.parse(request.responseText);
|
||||||
ids.concat(response.data.ids);
|
ids = ids.concat(response.data.ids);
|
||||||
|
next();
|
||||||
} else {
|
} else {
|
||||||
callback(null, {
|
callback(null, {
|
||||||
code: request.status,
|
code: request.status,
|
||||||
|
|
Loading…
Reference in a new issue