Skip to content

Commit

Permalink
search patient with single fingerprint (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
MackendyCharles authored Jan 11, 2022
1 parent 07e9875 commit 5d09d63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions omod/src/main/webapp/resources/scripts/field/m2sysnew.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function capture(deviceName, templateFormat, engineName, useTemplate,apiPath,sou
});
} else {
console.log("Using the scanner");
CallFPBioMetricCapture(SuccessFunc, ErrorFunc, apiPath, deviceName, templateFormat, engineName,sourceButton);
var captureType = 'DoubleCapture';
CallFPBioMetricCapture(SuccessFunc, ErrorFunc, apiPath, deviceName, templateFormat, engineName,sourceButton, captureType);
}
}

Expand All @@ -36,11 +37,12 @@ function biometricSearch(deviceName, templateFormat, engineName, useTemplate,sou
});
} else {
console.log("Using the scanner");
CallFPBioMetricCapture(SuccessFunc, ErrorFunc, apiPath, deviceName, templateFormat, engineName,sourceButton);
var captureType = 'SingleCapture';
CallFPBioMetricCapture(SuccessFunc, ErrorFunc, apiPath, deviceName, templateFormat, engineName,sourceButton, captureType);
}
}

function CallFPBioMetricCapture(SuccessFunc, ErrorFunc, apiPath, deviceName, templateFormat, engineName,sourceButton) {
function CallFPBioMetricCapture(SuccessFunc, ErrorFunc, apiPath, deviceName, templateFormat, engineName,sourceButton, captureType) {
var uri = apiPath;

var xmlhttp = new XMLHttpRequest();
Expand All @@ -53,8 +55,6 @@ function CallFPBioMetricCapture(SuccessFunc, ErrorFunc, apiPath, deviceName, tem
}
}


var captureType = 'DoubleCapture';
var quickScan = 'Enable';
var successMessage = document.getElementById('successMessage').value;
var errorMessage = document.getElementById('errorMessage').value;
Expand Down

0 comments on commit 5d09d63

Please sign in to comment.