diff --git a/www/assets/js/toolbox_scanner.js b/www/assets/js/toolbox_scanner.js index b3171f0..8beb771 100644 --- a/www/assets/js/toolbox_scanner.js +++ b/www/assets/js/toolbox_scanner.js @@ -1,4 +1,4 @@ -/* +/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -170,7 +170,7 @@ $("#app").on("click", "ul li.eventtypebutton", function () { if ($(this).data("form3849") == "1") { // TODO: make this not a hack - app.dialog.prompt("Type in 3849 form", "3849 Form", function (formcode) { + app.dialog.prompt("Key in 3849 form", "3849 Form", function (formcode) { for (i in scannerCodes) { saveScanCode({ code: scannerCodes[i], @@ -181,7 +181,7 @@ $("#app").on("click", "ul li.eventtypebutton", function () { } app.toast.show({ text: 'Information recorded successfully!', - position: "bottom", + position: "center", destroyOnClose: true, closeTimeout: 1000 * 3 }); @@ -200,10 +200,16 @@ $("#app").on("click", "ul li.eventtypebutton", function () { } app.toast.show({ text: 'Information recorded successfully!', - position: "bottom", + position: "center", destroyOnClose: true, closeTimeout: 1000 * 3 }); resetScanner(); } +}); + +$("#brokenscannerinput").on('keypress', function (e) { + if (e.which == 13) { + brokenScannerAddTextEntry(); + } }); \ No newline at end of file diff --git a/www/pages/toolbox/scanner/entries.html b/www/pages/toolbox/scanner/entries.html index edc745b..64d517f 100644 --- a/www/pages/toolbox/scanner/entries.html +++ b/www/pages/toolbox/scanner/entries.html @@ -23,7 +23,7 @@
{{#if entries}} -
+
    {{#each entries}}
  • diff --git a/www/pages/toolbox/scanner/scanner.html b/www/pages/toolbox/scanner/scanner.html index a85ace5..e9e0cf4 100644 --- a/www/pages/toolbox/scanner/scanner.html +++ b/www/pages/toolbox/scanner/scanner.html @@ -49,9 +49,15 @@