Sha256: 9b6425cff44c9dde356535c7da271cfeb29f6aa5402d355bb4eb74cceb48c6fd

Contents?: true

Size: 269 Bytes

Versions: 33

Compression:

Stored size: 269 Bytes

Contents

$(function(){
  $('form.no-enter-submit').bind("keypress", function(e) {
    if (e.keyCode == 13) {
      e.preventDefault();
      return false;
    }
  });

  $('form.disable-on-submit').on('submit', function(e){
    $(this).find(".btn").addClass('disabled')
  })
})

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
mvpkit-2.0.0 assets/js/init/forms.js
mvpkit-1.1.2 assets/js/init/forms.js
mvpkit-1.1.1 assets/js/init/forms.js
mvpkit-1.1.0 assets/js/init/forms.js
mvpkit-1.0.4 assets/js/init/forms.js
mvpkit-1.0.3 assets/js/init/forms.js
mvpkit-1.0.2 assets/js/init/forms.js
mvpkit-1.0.1 assets/js/init/forms.js
mvpkit-1.0.0 assets/js/init/forms.js
mvpkit-0.8.1 assets/js/init/forms.js
mvpkit-0.8.0 assets/js/init/forms.js
minimum_viable_product-0.7.15 assets/js/init/forms.js
minimum_viable_product-0.7.14 assets/js/init/forms.js
minimum_viable_product-0.7.13 assets/js/init/forms.js
minimum_viable_product-0.7.12 assets/js/init/forms.js
minimum_viable_product-0.7.11 assets/js/init/forms.js
minimum_viable_product-0.7.10 assets/js/init/forms.js
minimum_viable_product-0.7.9 assets/js/init/forms.js
minimum_viable_product-0.7.8 assets/js/init/forms.js
minimum_viable_product-0.7.7 assets/js/init/forms.js