thecore_dataentry_commons 1.2.22 → 1.2.23

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: 578b6c09cbf6fcc82f4fce177fcb06205c8d5b50
4
- data.tar.gz: 7a744a6c6c38d7c521c5f6527999408adc300d4e
3
+ metadata.gz: 24c4d421a188105a7fe2256ce3ca469be4fae6d8
4
+ data.tar.gz: 0f874ebbabb40348096e5333afa8f42dd0afb558
5
5
  SHA512:
6
- metadata.gz: 37fe3c46a9e65dc884c933d58cf5e7bf1f162e188c1a689d4daa6d6fdb01ecfdb3745dbc6df9a0975c364cfdc7e51ea0a509943000891a31fa713031145f9959
7
- data.tar.gz: 523561377d20b8c435d23aa65f2e9b33c6583053cd55f1ae85e629597d222f2eabd1965159b1e08767714419f6a6dff103e8846770226edc512d963eac59577a
6
+ metadata.gz: b2d448828ed8598420bee93d410224d4e9a4a1246f306b989869e0058e71b5ebac98709dac1c6fd19fd24c8d8e9d5c38bf02d4e60b1446c1db6b4779f26684fa
7
+ data.tar.gz: eb6581007206fe9c8dd63cdae3a121ed22c51bae7659e9d0025f39de7c7f631708d11735c2413a702fb14d0820dfc88f84cc148670737000d5fea76e111d3d14
@@ -82,6 +82,10 @@
82
82
  function dataActionFailure(errorObj) {
83
83
  barcodeScannedFailure(errorObj);
84
84
  }
85
+
86
+ function dataActionAlways(){
87
+ $("#data-action").button('reset');
88
+ }
85
89
  <%-end%>
86
90
  // END of overridable functions
87
91
 
@@ -105,7 +109,7 @@
105
109
  barcode: code.val(),
106
110
  what_to_do: "data-action",
107
111
  data: returnedData
108
- }).then(dataActionSuccess).done(dataActionThen).fail(dataActionFailure);
112
+ }).then(dataActionSuccess).done(dataActionThen).fail(dataActionFailure).always(dataActionAlways);
109
113
  });
110
114
  <%-end%>
111
115
 
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.2.22'
2
+ VERSION = '1.2.23'
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.22
4
+ version: 1.2.23
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-02-06 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_settings