thecore_dataentry_commons 1.2.30 → 1.2.31

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: 72724bc2906ba48be4c44fa7a3cf2841e3f83e43
4
- data.tar.gz: 57a06fb55a3d2f40b1a1172e5a6550af1399ed04
3
+ metadata.gz: 9516fde3b005039b986dfb96761cab6335ed525f
4
+ data.tar.gz: 030e6184ae398e748be887e3b9910759da005169
5
5
  SHA512:
6
- metadata.gz: 94ffdae391643d688aec24a92d2de214dcaea92242b453ef8c04fb541be3c7be8a67d47243da9f576e12a323bcf45ee03b45d5ddcf1678bab0e54e62e3bc3137
7
- data.tar.gz: 8d7c6e189fa761c14d6027b971a0f61bea3717fef1d02d3613b4cdaedbce5ee3f9f2eb7465fb36f2ce1bb7f1af36b18e05199d4c594267d0525126d26e3a8b4a
6
+ metadata.gz: fc62959b96e2fc68644a0174af817967ea382256833141032eccf26654008471e1a433227e583428e6f36e7f88d8e297f64e080a4483827ac11d113a16f6901f
7
+ data.tar.gz: 905b653fdc100a9ca341808cdd951db64fc3dfc5be18f980ee151fab8962d77dbddfb45cdcb63b8ec699c652794a155b2f5acb56bfb5125e0e79c39098fda86e
@@ -18,6 +18,7 @@
18
18
  <script>
19
19
  var code;
20
20
  var returnedData;
21
+ var additionalData = {};
21
22
 
22
23
  // These functions can be overridden in the containing file
23
24
  function setAll() {
@@ -93,7 +94,8 @@
93
94
  code.prop('disabled', true);
94
95
  $(this).button('loading');
95
96
  $.get('<%=rails_admin.send("#{action_name}_path")%>', {
96
- barcode: code.val()
97
+ barcode: code.val(),
98
+ parameters: additionalData
97
99
  }).then(barcodeScannedSuccess).done(barcodeScannedThen).fail(barcodeScannedFailure);
98
100
  }
99
101
  <%-unless (start_disabled rescue false)%>
@@ -110,6 +112,7 @@
110
112
  $(this).button('loading');
111
113
  $.get('<%=rails_admin.send("#{action_name}_path")%>', {
112
114
  barcode: code.val(),
115
+ parameters: additionalData,
113
116
  what_to_do: "data-action",
114
117
  data: returnedData
115
118
  }).then(dataActionSuccess).done(dataActionThen).fail(dataActionFailure).always(dataActionAlways);
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.2.30'.freeze
2
+ VERSION = '1.2.31'.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.30
4
+ version: 1.2.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni