thecore_dataentry_commons 1.2.35 → 1.2.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/rails_admin/main/_kp.html.erb +8 -10
- data/lib/thecore_dataentry_commons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a79ff9eec22416d6b6813fb6335f5a420f7d94c6
|
4
|
+
data.tar.gz: 0ac4fd63333cd63920de00b9a6d250466e3a3625
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e516b3c55a0e60be72f1e6ed472236fa5f4e082fe107de1641aa8a4c7ab4166b767845047faef786186f59d3fe9e0b6bb2d4a2d130897aeabf002c51bed1e78
|
7
|
+
data.tar.gz: 6713cf280d5e88a0720d0876dc97f8d0622f455c31181bc654c5c83ac1475f786cee35a654b8017a3fd0d70f6417e25dc9c439662711fe66d7f93f9a8e948e0e
|
@@ -46,6 +46,13 @@
|
|
46
46
|
$("#barcode").on(kpMode, manageScannedKeystrokes);
|
47
47
|
}
|
48
48
|
|
49
|
+
function startKSCapture() {
|
50
|
+
enableKSCapture();
|
51
|
+
// Se $("#barcode") si becca il focus, elimino il keypress
|
52
|
+
$("#barcode").focusin(disableKSCapture);
|
53
|
+
$("#barcode").focusout(enableKSCapture);
|
54
|
+
}
|
55
|
+
|
49
56
|
// $("#send").focus();
|
50
57
|
// Init
|
51
58
|
// Disabling any previously defined keypress event
|
@@ -56,15 +63,6 @@
|
|
56
63
|
<%-unless (start_disabled rescue false)%>
|
57
64
|
disableKSCapture();
|
58
65
|
<%-else%>
|
59
|
-
|
66
|
+
startKSCapture();
|
60
67
|
<%-end%>
|
61
|
-
// Se $("#barcode") si becca il focus, elimino il keypress
|
62
|
-
$("#barcode").focusin(function () {
|
63
|
-
// Blocco il keypress del document
|
64
|
-
disableKSCapture();
|
65
|
-
});
|
66
|
-
$("#barcode").focusout(function () {
|
67
|
-
// Blocco il keypress del document
|
68
|
-
enableKSCapture();
|
69
|
-
});
|
70
68
|
</script>
|