Commit 9ecebfdc authored by Mihkel Putrinš's avatar Mihkel Putrinš

win

parent 64242444
......@@ -32,7 +32,7 @@ var upload = function upload() {
}
var resourcesCreated = function resourcesCreated(err) {
// if (err) { throw(err) }
if (err) { throw(err) }
async.parallelLimit(file_upload_tasks, 3, function filesUploaded() {
setFormState('uploaded')
document.getElementById('resource_entu_link').setAttribute('href', 'https://entu.keeleressursid.ee/entity/resource/' + resource.eid)
......@@ -85,7 +85,7 @@ var createEntuResource = function createEntuResource(parent_eid, resource, callb
xhr.setRequestHeader('X-Auth-UserId', user_data['user_id'])
xhr.setRequestHeader('X-Auth-Token', user_data['session_key'])
xhr.onload = function (err) {
if (err) { return callback(err) }
// if (err) { return callback(err) }
var new_eid = op.get(JSON.parse(this.responseText), ['result', 'id'], false)
console.log('Looking for new EID:', new_eid)
if (new_eid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment