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: 3afb924beba5700d2f714ecd1adb7edeb5e5ed17
4
- data.tar.gz: d172243f65e1c3dd8e33b8424904d0ce80ccc587
3
+ metadata.gz: 113d9b156d98e53d9994ea0dcaaf9be4783834b7
4
+ data.tar.gz: 12747c562d0498ab07e2b75f2286eece43e35ae5
5
5
  SHA512:
6
- metadata.gz: 593aa20efcee47324584ab136c70efb8b7c08ab2fb0b0fec421fcbd5ad2ce63785262d2c9a2b2ce0a6965614ecc110e03856a6e0c1b50de1321ec7af89e6c009
7
- data.tar.gz: eb815a42724f3500b2afff60121fe5fb067d9f90d4d6c79d9310bc2f47c9581f3f7367ac5c8f1292774c9548ad8441be6053483b4c5c2fb82a70c495ab1b2e84
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
+ })
@@ -0,0 +1,5 @@
1
+ $(function() {
2
+ $('.modal').on('shown.bs.modal', ()=>{
3
+ $('form').resetClientSideValidations()
4
+ })
5
+ });
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.0.38"
2
+ VERSION = "0.0.39"
3
3
  end
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.38
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