comparison js/core.js @ 2974:c2003d6716f8

#262 SessionKey refactoring typo
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 12 Jan 2018 13:24:26 +0000
parents 2d39ee05a5dc
children d8a715a63e6f
comparison
equal deleted inserted replaced
2973:2d39ee05a5dc 2974:c2003d6716f8
3671 // so check the status 3671 // so check the status
3672 if (this.status >= 300) { 3672 if (this.status >= 300) {
3673 console.log("WARNING - Could not update at this time"); 3673 console.log("WARNING - Could not update at this time");
3674 } else { 3674 } else {
3675 var parser = new DOMParser(); 3675 var parser = new DOMParser();
3676 var xmlDoc = parser.parseFromString(xmlhttp.responseText, "application/xml"); 3676 var xmlDoc = parser.parseFromString(req.responseText, "application/xml");
3677 var response = xmlDoc.getElementsByTagName('response')[0]; 3677 var response = xmlDoc.getElementsByTagName('response')[0];
3678 if (response.getAttribute("state") == "OK") { 3678 if (response.getAttribute("state") == "OK") {
3679 var file = response.getElementsByTagName("file")[0]; 3679 var file = response.getElementsByTagName("file")[0];
3680 console.log("Intermediate save: OK, written " + file.getAttribute("bytes") + "B"); 3680 console.log("Intermediate save: OK, written " + file.getAttribute("bytes") + "B");
3681 resolve(true); 3681 resolve(true);