bug fixes

This commit is contained in:
2022-11-29 00:26:48 +01:00
parent 4988f0eebd
commit e21ec9065d
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -149,10 +149,11 @@ function report_missing(partID, missing){
var data = new FormData();
data.append('partID', partID);
if(missing){
data.append('missing', 'missing')
missing = 'missing'
}else{
data.append('missing', 'found')
missing = 'found'
}
data.append('missing', missing)
$.ajax({
url: rootURL + 'report_missing',
type: 'POST',
@@ -161,7 +162,7 @@ function report_missing(partID, missing){
contentType: false,
processData: false,
success: function(data) {
alert("Thank you for reporting part as " + missing ".");
alert("Thank you for reporting part as " + missing + ".");
},
error: function() {
alert("Couldn't update the part information. Please retry.");