thecore_dataentry_commons 1.2.34 → 1.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd40043a01688d0e2b7c72067465ab6383edb6c9
|
|
4
|
+
data.tar.gz: 9166036948953e1190b3ff3db03ef1106807f6bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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>
|