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 +4 -4
- data/assets/js/romo/form.js +6 -3
- data/lib/romo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
|
4
|
-
|
3
|
+
data.tar.gz: 8fbb0075b9629ae645bacca166ef68fa523d5690
|
4
|
+
metadata.gz: bd75a4dad4da2f662d251850cadd631c4028f685
|
5
5
|
SHA512:
|
6
|
-
|
7
|
-
|
6
|
+
data.tar.gz: fcb60aa1c5f6ebc6a8c6ad5d2fdf2abb37bac69eaff5d844668696f9430eb564d35dd923ff949927b2ab89470d7ff794c716c3d1ef2580f23a480544c7c4f936
|
7
|
+
metadata.gz: e44331d835150aef29891eeca950843e16a5ea1c949cdd376201be56e1943e97a807592383f426786b3c2498dfc1dd610445b75dc3113ba4e6e1b2758cae7caa
|
data/assets/js/romo/form.js
CHANGED
@@ -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
|
-
|
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,
|
218
|
+
if (Romo.is(e.target, this.submitElemSelector)) {
|
216
219
|
submitElem = e.target;
|
217
220
|
} else {
|
218
|
-
submitElem = Romo.closest(e.target,
|
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
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.
|
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-
|
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.
|
139
|
+
rubygems_version: 2.6.12
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: A UI Toolkit
|