Started implementing file upload

This commit is contained in:
Davide Bongiovanni
2017-06-06 18:42:06 +02:00
parent 685400dc42
commit 6214390df4
2 changed files with 17 additions and 3 deletions
+5 -2
View File
@@ -94,7 +94,10 @@ function save(partID) {
partnos = partno_v.split(' ');
if (datasheet.length == 1) {
if (datasheet.length == 0) {
datasheet = [];
datasheet[0] = '';
}
$.ajax({
// Your server script to process the upload
url: 'https://www.elab.kth.se/parts/alter/' + partID,
@@ -127,7 +130,7 @@ function save(partID) {
return xhr;
},
});
}
end_edit();
}