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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd40043a01688d0e2b7c72067465ab6383edb6c9
4
- data.tar.gz: 9166036948953e1190b3ff3db03ef1106807f6bc
3
+ metadata.gz: a79ff9eec22416d6b6813fb6335f5a420f7d94c6
4
+ data.tar.gz: 0ac4fd63333cd63920de00b9a6d250466e3a3625
5
5
  SHA512:
6
- metadata.gz: c207fcbc7df126c024a7152b140331ac0af14c286b9ff86b058105242f2ba4f1f4524931ba31b67cde9d43649b421c1c9d743fc39ed5ba334b4e38345a7ef52e
7
- data.tar.gz: d09ed56b9edd9b9599316527c8cede985773963ddc0a3d0007fb82a67b08ad4541dca26c957f71281fa03372048b0c6fe2b6cf4c1fb3939d9641d217547c2036
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
- enableKSCapture();
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>
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.2.35'.freeze
2
+ VERSION = '1.2.36'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_dataentry_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.35
4
+ version: 1.2.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni