From d0a9515cc0e549f19e3682299d3f04d2a444a217 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 20 Jan 2016 13:14:38 +0530 Subject: [PATCH] return ids after upload, fixes #162 --- static/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 7089ed3..0ac1f51 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1044,9 +1044,9 @@ oml.upload = function(fileslist, callback) { request.onreadystatechange = function() { if (request.readyState == 4) { if (request.status == 200) { - next(); var response = JSON.parse(request.responseText); - ids.concat(response.data.ids); + ids = ids.concat(response.data.ids); + next(); } else { callback(null, { code: request.status,