romo 0.8.0 → 0.9.0
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 -4
- data/lib/romo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ef654b46bb779368cdcececf57e0b1a5c1216de
|
4
|
+
data.tar.gz: 2e89bacbd83f1f91ccd8003df65d5c0e695db743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b10abe6fb0a90f309f3e21ad61c337c9fdb83bd7bf577108f076840131013b2889176057794a3550a2175776534f21c9aff934cb5c61a9c4cd4efd4fb94d5190
|
7
|
+
data.tar.gz: 3d6b7404d4480dd978ef004cb692fdf7b2c317f169833ff9ed262dd0b1a8077d9a4adb6d6ddd3c728b96e3adc5acd73f8e2c87da156855e92b6dab1ebc2e9296
|
data/assets/js/romo/form.js
CHANGED
@@ -65,11 +65,13 @@ RomoForm.prototype.doBindForm = function() {
|
|
65
65
|
}
|
66
66
|
|
67
67
|
RomoForm.prototype.onFormKeyPress = function(e) {
|
68
|
-
|
68
|
+
if (this.elem.data('romo-form-disable-keypress') !== true) {
|
69
|
+
var target = $(e.target);
|
69
70
|
|
70
|
-
|
71
|
-
|
72
|
-
|
71
|
+
if (target.is(':not(TEXTAREA)') && e.keyCode === 13 /* Enter */) {
|
72
|
+
e.preventDefault();
|
73
|
+
this.onSubmitClick();
|
74
|
+
}
|
73
75
|
}
|
74
76
|
}
|
75
77
|
|
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06
|
12
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: assert
|