Skip to content

Commit

Permalink
Add floating button to reset RFID
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Sep 13, 2024
1 parent 4459067 commit 0c3bd63
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Koha/Plugin/Com/ByWaterSolutions/RFID/static_files/rfid.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ function handle_one_at_a_time(
) {
console.log("handle_one_at_a_time");

var $button = $('<button>', {
style: 'position: fixed; bottom: 20px; right: 20px',
id: 'fixedButton',
text: 'Reset RFID',
click: function() {
handle_action_change("");
initiate_rfid_scanning();
}
});
$('body').append($button);

barcode_input = barcode_input ? barcode_input : $("#barcode");
form_submit = form_submit
? form_submit
Expand Down

0 comments on commit 0c3bd63

Please sign in to comment.