romo 0.20.6 → 0.20.7

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: 93895c1db49fea1fff8d1fb71de3689e7f4d7f29
4
- data.tar.gz: ad3a1ef81f7e80fb8f08a0c0dca147d2a6427ce8
3
+ data.tar.gz: 8fbb0075b9629ae645bacca166ef68fa523d5690
4
+ metadata.gz: bd75a4dad4da2f662d251850cadd631c4028f685
5
5
  SHA512:
6
- metadata.gz: 17d9adcf38e2efae64fb7a4523cd646f8f3823a935be144284e0fc5fa434dcd07b56d03d874809657ed371540adb071b50ac5df0de05087b209810357726635c
7
- data.tar.gz: f9fcd8a52924709eb792667aec3d0663212da534432a12445d160afbf7a39db86e622775a71306c5407111dccee27207e45227becdff3536a5582c50ce768b4a
6
+ data.tar.gz: fcb60aa1c5f6ebc6a8c6ad5d2fdf2abb37bac69eaff5d844668696f9430eb564d35dd923ff949927b2ab89470d7ff794c716c3d1ef2580f23a480544c7c4f936
7
+ metadata.gz: e44331d835150aef29891eeca950843e16a5ea1c949cdd376201be56e1943e97a807592383f426786b3c2498dfc1dd610445b75dc3113ba4e6e1b2758cae7caa
@@ -1,9 +1,12 @@
1
1
  var RomoForm = RomoComponent(function(elem, givenSubmitElems, givenSpinnerElems) {
2
2
  this.elem = elem;
3
3
 
4
+ this.submitElemSelector = 'button[type="submit"], ' +
5
+ 'input[type="submit"], ' +
6
+ '[data-romo-form-submit]';
4
7
  var defaultSubmitElems = Romo.find(
5
8
  this.elem,
6
- 'button[type="submit"], input[type="submit"], [data-romo-form-submit]'
9
+ this.submitElemSelector
7
10
  );
8
11
  this.submitElems = (givenSubmitElems || []).concat(defaultSubmitElems || []);
9
12
 
@@ -212,10 +215,10 @@ RomoForm.prototype.romoEvFn._onSubmitClick = function(e) {
212
215
  e.preventDefault();
213
216
 
214
217
  var submitElem;
215
- if (Romo.is(e.target, '[data-romo-form-submit]')) {
218
+ if (Romo.is(e.target, this.submitElemSelector)) {
216
219
  submitElem = e.target;
217
220
  } else {
218
- submitElem = Romo.closest(e.target, '[data-romo-form-submit]');
221
+ submitElem = Romo.closest(e.target, this.submitElemSelector);
219
222
  }
220
223
  if (!Romo.hasClass(submitElem, 'disabled')) {
221
224
  if (Romo.data(submitElem, 'romo-form-submit') === 'confirm') {
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.20.6"
2
+ VERSION = "0.20.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.6
4
+ version: 0.20.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2017-12-08 00:00:00 Z
13
+ date: 2017-12-12 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assert
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  requirements: []
137
137
 
138
138
  rubyforge_project:
139
- rubygems_version: 2.6.6
139
+ rubygems_version: 2.6.12
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: A UI Toolkit