Remove some papercuts from broken scanner feature
This commit is contained in:
parent
9f5caa2593
commit
4c24d8fba8
@ -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();
|
||||
}
|
||||
});
|
@ -23,7 +23,7 @@
|
||||
|
||||
<div class="page-content">
|
||||
{{#if entries}}
|
||||
<div class="list media-list">
|
||||
<div class="list media-list no-margin-top no-hairlines">
|
||||
<ul>
|
||||
{{#each entries}}
|
||||
<li style="padding-top: 2rem; padding-bottom: 2rem;">
|
||||
|
@ -49,9 +49,15 @@
|
||||
</div>
|
||||
|
||||
<div class="popup" id="scanEventPopup" style="background-color: var(--f7-page-bg-color);">
|
||||
<div class="block">
|
||||
<p>Select Event</p>
|
||||
<div class="list tablet-inset">
|
||||
<div class="navbar">
|
||||
<div class="navbar-bg"></div>
|
||||
<div class="navbar-inner">
|
||||
<div class="title">Select Event</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="block no-margin-top padding-bottom" style="height: calc(100% - var(--f7-navbar-height)); overflow-y: auto;">
|
||||
<div class="list tablet-inset no-hairlines no-margin-top">
|
||||
<ul class="eventlist">
|
||||
|
||||
</ul>
|
||||
@ -66,8 +72,15 @@
|
||||
</div>
|
||||
|
||||
<div class="popup" id="scanEventTypePopup" style="background-color: var(--f7-page-bg-color);">
|
||||
<div class="block">
|
||||
<div class="list tablet-inset">
|
||||
<div class="navbar">
|
||||
<div class="navbar-bg"></div>
|
||||
<div class="navbar-inner">
|
||||
<div class="title">Event Type</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="block no-margin-top padding-bottom" style="height: calc(100% - var(--f7-navbar-height)); overflow-y: auto;">
|
||||
<div class="list tablet-inset no-hairlines no-margin-top">
|
||||
<ul class="eventlist">
|
||||
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user