return ids after upload, fixes #162

This commit is contained in:
j 2016-01-20 13:14:38 +05:30
parent 97ef26f7e7
commit d0a9515cc0

View file

@ -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,