|
|
|
@ -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();
|
|
|
|
|
}
|
|
|
|
|
});
|