thecore_dataentry_commons 1.2.34 → 1.2.35

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: 7984865f9a2d6bb35c88265f0082b3d068c2a6a4
4
- data.tar.gz: 3fafd105b3ffcaf3a7e722c02bb5e5399ca53782
3
+ metadata.gz: bd40043a01688d0e2b7c72067465ab6383edb6c9
4
+ data.tar.gz: 9166036948953e1190b3ff3db03ef1106807f6bc
5
5
  SHA512:
6
- metadata.gz: 8e24528f59ac37e77c91937c5eb19a4295498601f94452a7455332558b675c2290497cf538ad30fb9c684d03af0bba02fba5ee27bccb5289c6b7cf95c6205b3d
7
- data.tar.gz: 42b661dcba8f6f6235984eba5b709cf89fbde2d936b6c4c04d12171176c4d65bc801e94ea535f4a1ee2c0a6c55fb7f745bf309e9fbfb6b65ec7d838822e3f4a9
6
+ metadata.gz: c207fcbc7df126c024a7152b140331ac0af14c286b9ff86b058105242f2ba4f1f4524931ba31b67cde9d43649b421c1c9d743fc39ed5ba334b4e38345a7ef52e
7
+ data.tar.gz: d09ed56b9edd9b9599316527c8cede985773963ddc0a3d0007fb82a67b08ad4541dca26c957f71281fa03372048b0c6fe2b6cf4c1fb3939d9641d217547c2036
@@ -102,11 +102,6 @@
102
102
  $('#send').on('click', sendFunction);
103
103
  <%-else%>
104
104
  $('#send').off('click', sendFunction);
105
- <%-if @type == "ws"%>
106
- if(ws) ws.close();
107
- <%-else%>
108
- disableKSCapture();
109
- <%-end%>
110
105
  <%-end%>
111
106
 
112
107
  <%-unless (hide_action rescue true)%>
@@ -53,7 +53,11 @@
53
53
  $("#barcode").off(kpMode);
54
54
  $("#barcode").focus();
55
55
  // Enabling keypress event only for this page
56
+ <%-unless (start_disabled rescue false)%>
57
+ disableKSCapture();
58
+ <%-else%>
56
59
  enableKSCapture();
60
+ <%-end%>
57
61
  // Se $("#barcode") si becca il focus, elimino il keypress
58
62
  $("#barcode").focusin(function () {
59
63
  // Blocco il keypress del document
@@ -71,10 +71,17 @@
71
71
  thecoreWsInit();
72
72
  }
73
73
  }
74
+ var isAndroid;
74
75
  // Creating the websocket
75
- var ua = navigator.userAgent.toLowerCase();
76
- var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
77
- if (isAndroid) {
78
- setInterval(tryInit, 1500);
76
+ function startWS() {
77
+ var ua = navigator.userAgent.toLowerCase();
78
+ isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
79
+ if (isAndroid) {
80
+ setInterval(tryInit, 1500);
81
+ }
79
82
  }
83
+
84
+ <%-unless (start_disabled rescue false)%>
85
+ startWS();
86
+ <%-end%>
80
87
  </script>
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.2.34'.freeze
2
+ VERSION = '1.2.35'.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.34
4
+ version: 1.2.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni