formatted_form 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -1,12 +1,12 @@
1
1
  // Reset the state of the submit button
2
2
  $(document).ready(function() {
3
3
 
4
- $('input[type=submit][data-loading-text]').each(function(i, button){
5
- $(button).button('reset');
4
+ $('body').on('submit', 'form', function(event){
5
+ $('input[type=submit][data-loading-text]', event.target).button('loading');
6
6
  });
7
7
 
8
- $('form').on('submit', function(event){
9
- $('input[type=submit][data-loading-text]', event.target).button('loading');
8
+ $('body').on('reset', 'form', function(event){
9
+ $('input[type=submit][data-loading-text]', event.target).button('reset');
10
10
  });
11
11
 
12
12
  });
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "formatted_form"
8
- s.version = "2.0.0"
8
+ s.version = "2.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Neto", "Oleg Khabarov", "The Working Group Inc."]
12
- s.date = "2012-12-03"
12
+ s.date = "2012-12-07"
13
13
  s.description = ""
14
14
  s.email = "jack@twg.ca"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatted_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-12-03 00:00:00.000000000 Z
14
+ date: 2012-12-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: -4409253828031207642
137
+ hash: -949305071472839061
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements: