thecore_dataentry_with_date_start_and_end 1.1.10 → 1.2.1

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
- SHA1:
3
- metadata.gz: 1d88f54803d653249174d8988cee73d141e16ec9
4
- data.tar.gz: 323fae658e5fdd5ddecf14d62656744844a65a3c
2
+ SHA256:
3
+ metadata.gz: 223c0c172881241097d579f2d2d8f5b28964580f0b230617bce4bdc554473faf
4
+ data.tar.gz: 928529f6d1517f978674fefb3d78e085c0defbda78200397d81b1745409e11c6
5
5
  SHA512:
6
- metadata.gz: 1ac3d84246200a80941121d5e75fd5242537a1bc49d69dd4b3d39736d9b091b90ac0b29e152dd1e2b281e5c1a81d86ec1df63eabf52396c99b970e96e0a86fc4
7
- data.tar.gz: 97c69028b0fbcf3aa71b765083f172be78e1e4a4330e32d26490c2566340fe7c2f614a2f03eb2f66bcdc995c05bcc439b393762716d4c61511bf638127441d7b
6
+ metadata.gz: e2b2a8603955652ab2e891713502a03f53c2c1ea05d204d04e453cc7781bb8c9005f543204fe65c3f27a525662ea456aebcf5f16165e753b5089e7798b9e7eb5
7
+ data.tar.gz: b07c3c56fec18ece14c4ea524df5c4fc15b19e74897f2a2f698c0fd1c5b072d020eb0341c40ade54c8ae94d9171d1ed39eda55ebd9a38da32de89b62c91b4734
@@ -2,23 +2,39 @@
2
2
  <%=render "thecore_utils/html_helpers"%>
3
3
 
4
4
  <script>
5
- // Function overridings
6
- function contentHtmlString(data){
7
- var html = $("<div></div>");
8
- html.append("<h3><%=t "thecore_dataentry_with_date_start_and_end.header" %> "+data.barcode+"</h3>");
9
- <%-if (not_before rescue true)%>
10
- html.append(buildDTPicker("not-before", '<%=t "thecore_dataentry_with_date_start_and_end.not_before" %>', data.not_before, <%= not_before_ro rescue false %>, <%= not_before_date_only rescue false%>));
11
- html.append("<br/>");
12
- <%-end%>
13
- <%-if (not_after rescue true)%>
14
- html.append(buildDTPicker("not-after", '<%=t "thecore_dataentry_with_date_start_and_end.not_after" %>', data.not_after, <%= not_after_ro rescue false %>, <%= not_after_date_only rescue false%>));
15
- html.append("<br/>");
16
- <%-end%>
17
- html.append("<strong><%=t "thecore_dataentry_with_date_start_and_end.description"%></strong>");
18
- return html;
5
+ // Function overridings
6
+ function contentHtmlString(data){
7
+ var html = $("<div></div>");
8
+ html.append("<h3><%=t "thecore_dataentry_with_date_start_and_end.header" %> "+data.barcode+"</h3>");
9
+ <%-if (not_before rescue true)%>
10
+ html.append(buildDTPicker("not-before", '<%=t "thecore_dataentry_with_date_start_and_end.not_before" %>', data.not_before, <%= not_before_ro rescue false %>, <%= not_before_date_only rescue false%>));
11
+ html.append("<br/>");
12
+ <%-end%>
13
+ <%-if (not_after rescue true)%>
14
+ html.append(buildDTPicker("not-after", '<%=t "thecore_dataentry_with_date_start_and_end.not_after" %>', data.not_after, <%= not_after_ro rescue false %>, <%= not_after_date_only rescue false%>));
15
+ html.append("<br/>");
16
+ <%-end%>
17
+ html.append("<strong><%=t "thecore_dataentry_with_date_start_and_end.description"%></strong>");
18
+ return html;
19
+ }
20
+
21
+ function dataActionThen(data){
22
+ resetInfo();
23
+ }
24
+
25
+ function captureCTRLSpace(event) {
26
+ // Capture all the keypresses and if they are a return,
27
+ // then "click" the send button
28
+ event.stopPropagation();
29
+ event.preventDefault();
30
+ var keycode = (event.keyCode ? event.keyCode : event.which);
31
+ console.log(`Keycode: ${keycode}`);
32
+ console.log(`Is ctrltKey? ${event.ctrltKey}`);
33
+ if (event.ctrltKey && keycode == '32') {
34
+ $("#data-action").click();
35
+ return true;
19
36
  }
20
-
21
- function dataActionThen(data){
22
- resetInfo();
23
- }
37
+ return false;
38
+ }
39
+ $(document).on('keydown', captureCTRLSpace);
24
40
  </script>
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryWithDateStartAndEnd
2
- VERSION = '1.1.10'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_dataentry_with_date_start_and_end
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-28 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_dataentry_commons
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.6.14
78
+ rubygems_version: 2.7.7
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Thecore Dataentry via WS or KP, handling dates