thecore_dataentry_commons 1.2.31 → 1.2.32

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: 9516fde3b005039b986dfb96761cab6335ed525f
4
- data.tar.gz: 030e6184ae398e748be887e3b9910759da005169
3
+ metadata.gz: d301940507fb843ef4a6de966c8485a14f1fd6f7
4
+ data.tar.gz: 61f3674293d47fec18026529d23be7198de6eba9
5
5
  SHA512:
6
- metadata.gz: fc62959b96e2fc68644a0174af817967ea382256833141032eccf26654008471e1a433227e583428e6f36e7f88d8e297f64e080a4483827ac11d113a16f6901f
7
- data.tar.gz: 905b653fdc100a9ca341808cdd951db64fc3dfc5be18f980ee151fab8962d77dbddfb45cdcb63b8ec699c652794a155b2f5acb56bfb5125e0e79c39098fda86e
6
+ metadata.gz: c97ea85260a82efdc17aeaa6ec1bb94e2d99fdee637d37b8b482d9bb76eed83b7f83927020b3f28cc69a8324da6dce69fea3e46661f184d5482fe7d1458af8a2
7
+ data.tar.gz: 254e06259778040e1279b412a6e500edd697c780aa387da64459f12ca31897dca08854e1b135b6007a2bcdc15dd9b52965639d327cab4b7148c76b71a193c244
@@ -102,6 +102,10 @@
102
102
  $('#send').on('click', sendFunction);
103
103
  <%-else%>
104
104
  $('#send').off('click', sendFunction);
105
+ if disableKSCapture
106
+ disableKSCapture();
107
+ if ws
108
+ ws.close();
105
109
  <%-end%>
106
110
 
107
111
  <%-unless (hide_action rescue true)%>
@@ -27,7 +27,7 @@
27
27
 
28
28
  var barcodeScanRegExp = /Barcode \((.*)\) \[(.*)\]/;
29
29
 
30
- function init() {
30
+ function thecoreWsInit() {
31
31
  ws = new WebSocket("ws://" + address + ":" + port + "/");
32
32
  ws.onmessage = function (event) {
33
33
  // event.data ha forma: Barcode (8273878337383) [LABEL-TYPE-EAN13]
@@ -68,7 +68,7 @@
68
68
  function tryInit() {
69
69
  // Solo se la socket è chiusa e siamo in ambiente android
70
70
  if (socketClosed) {
71
- init();
71
+ thecoreWsInit();
72
72
  }
73
73
  }
74
74
  // Creating the websocket
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.2.31'.freeze
2
+ VERSION = '1.2.32'.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.31
4
+ version: 1.2.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni