Added ability to clear the BOLO plate

This commit is contained in:
Dan
2020-11-05 15:33:21 +00:00
parent dc8875893f
commit 4f7d56471b
4 changed files with 26 additions and 3 deletions

View File

@@ -89,6 +89,7 @@ const elements =
plateReaderBox: $( "#plateReaderBox" ),
boloText: $( "#boloText" ),
setBoloBtn: $( "#setBoloPlate" ),
clearBoloBtn: $( "#clearBoloPlate" ),
closePrBtn: $( "#closePlateReaderSettings" ),
openHelp: $( "#helpBtn" ),
@@ -766,6 +767,11 @@ elements.setBoloBtn.click( function() {
}
} )
// Sets the on click function for the clear BOLO button
elements.clearBoloBtn.click( function() {
sendData( "clearBoloPlate", null );
} )
// Checks what the user is typing into the plate box
function checkPlateInput( event )
{