thecore_dataentry_commons 1.2.29 → 1.2.30

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: 8ef308cc7ad39cd23eb4db238837adb95ebe1c05
4
- data.tar.gz: c9de76691bb0169eb5592a7f68ca6e2821d564a2
3
+ metadata.gz: 72724bc2906ba48be4c44fa7a3cf2841e3f83e43
4
+ data.tar.gz: 57a06fb55a3d2f40b1a1172e5a6550af1399ed04
5
5
  SHA512:
6
- metadata.gz: 2c1d6f5161ce26b3f672067892ac3b9d74a40ff9dbcc2a906ef04b7463666cf0778d9fe499d166ba1b3c2af1e090598c6388027b37960cc43cdd0df15803e04a
7
- data.tar.gz: 1cb483ca45fce584e371cb6409fe1826880f41b03a6f5afa118dfcb6e0094ee9ac81d9d83ef8c32ab4d6934d0ef4e975dd695af37330bdd976023abaa5a53cf9
6
+ metadata.gz: 94ffdae391643d688aec24a92d2de214dcaea92242b453ef8c04fb541be3c7be8a67d47243da9f576e12a323bcf45ee03b45d5ddcf1678bab0e54e62e3bc3137
7
+ data.tar.gz: 8d7c6e189fa761c14d6027b971a0f61bea3717fef1d02d3613b4cdaedbce5ee3f9f2eb7465fb36f2ce1bb7f1af36b18e05199d4c594267d0525126d26e3a8b4a
@@ -88,14 +88,19 @@
88
88
  // END of overridable functions
89
89
 
90
90
  // Operation on barcode scan
91
- $('#send').on('click', function () {
91
+ function sendFunction() {
92
92
  code = $('#barcode');
93
93
  code.prop('disabled', true);
94
94
  $(this).button('loading');
95
95
  $.get('<%=rails_admin.send("#{action_name}_path")%>', {
96
96
  barcode: code.val()
97
97
  }).then(barcodeScannedSuccess).done(barcodeScannedThen).fail(barcodeScannedFailure);
98
- });
98
+ }
99
+ <%-unless (start_disabled rescue false)%>
100
+ $('#send').on('click', sendFunction);
101
+ <%-else%>
102
+ $('#send').off('click', sendFunction);
103
+ <%-end%>
99
104
 
100
105
  <%-unless (hide_action rescue true)%>
101
106
  // Operation on button click
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.2.29'.freeze
2
+ VERSION = '1.2.30'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_dataentry_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.29
4
+ version: 1.2.30
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-10-14 00:00:00.000000000 Z
11
+ date: 2018-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_settings