Started implementing file upload
This commit is contained in:
+5
-2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user