minimum_viable_product 0.0.38 → 0.0.39
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 113d9b156d98e53d9994ea0dcaaf9be4783834b7
|
4
|
+
data.tar.gz: 12747c562d0498ab07e2b75f2286eece43e35ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 832e370c7f7ee7d63d3c137b17097db2e3efdde20fe004c805fc9140dd37cbfad63e2e02e19f1b58e648ed8ac54f2c788bdd97dcff5e5ea4deaf3dda4a2a6c9b
|
7
|
+
data.tar.gz: 6df0c20b2acb78aa0e4a95c8f5ba83da36a0229fcdd2c7a01c81d67e6bd683e5bc61658377fd4b07b825f0d32b747ecae62ff74f3814662c8f934c9704580416
|
@@ -0,0 +1,16 @@
|
|
1
|
+
$(fucntion(){
|
2
|
+
$('form.no-enter-submit').bind("keypress", function(e) {
|
3
|
+
if (e.keyCode == 13) {
|
4
|
+
e.preventDefault();
|
5
|
+
return false;
|
6
|
+
}
|
7
|
+
});
|
8
|
+
|
9
|
+
$('form.disable-on-submit').on('submit', function(e){
|
10
|
+
$(this).find(".btn").addClass('disabled')
|
11
|
+
})
|
12
|
+
|
13
|
+
ClientSideValidations.callbacks.form.fail = (form, eventData){
|
14
|
+
$("form.disable-on-submit .btn").removeClass('disabled')
|
15
|
+
}
|
16
|
+
})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimum_viable_product
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Hunter
|
@@ -428,6 +428,8 @@ files:
|
|
428
428
|
- Rakefile
|
429
429
|
- app/assets/javascripts/minimum_viable_product/application.js.erb
|
430
430
|
- app/assets/javascripts/minimum_viable_product/init/controllers.js
|
431
|
+
- app/assets/javascripts/minimum_viable_product/init/forms.js
|
432
|
+
- app/assets/javascripts/minimum_viable_product/init/modals.js
|
431
433
|
- app/assets/stylesheets/minimum_viable_product/application.scss
|
432
434
|
- app/assets/stylesheets/minimum_viable_product/components/fonts.scss
|
433
435
|
- app/assets/stylesheets/minimum_viable_product/components/spacing.scss
|