dry_forms 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -1,11 +1,11 @@
1
1
  // github.com/maca/dry_forms
2
-
3
2
  (function(a){
4
3
  dryForms = {
5
4
  associations : {
6
5
  removeAssociation : function(){
7
6
  var fieldset = $(this).closest('fieldset');
8
7
  fieldset.slideUp('slow').find('input.destroy').val('1');
8
+ this.removeCallback(fieldset);
9
9
  return false;
10
10
  },
11
11
 
@@ -17,9 +17,9 @@
17
17
  var fields = $(eval('fields_for_' + association).replace(regexp, association + "_" + new_id)).hide();
18
18
 
19
19
  fields.find('a.remove').click(dryForms.associations.removeAssociation);
20
- this.addCallback(fields);
21
20
 
22
21
  link.before(fields);
22
+ this.addCallback(fields);
23
23
  fields.slideDown('slow');
24
24
  return false;
25
25
  }
@@ -45,4 +45,4 @@
45
45
  // This may go in application.js
46
46
  jQuery(function(){
47
47
  $('.add_fields').createAssociation();
48
- });
48
+ });
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry_forms
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 21
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 0
9
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Macario Ortega
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-09-08 00:00:00 -05:00
18
+ date: 2010-09-11 00:00:00 -05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: thoughtbot-shoulda
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
@@ -63,27 +66,31 @@ rdoc_options:
63
66
  require_paths:
64
67
  - lib
65
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
66
70
  requirements:
67
71
  - - ">="
68
72
  - !ruby/object:Gem::Version
73
+ hash: 3
69
74
  segments:
70
75
  - 0
71
76
  version: "0"
72
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
73
79
  requirements:
74
80
  - - ">="
75
81
  - !ruby/object:Gem::Version
82
+ hash: 3
76
83
  segments:
77
84
  - 0
78
85
  version: "0"
79
86
  requirements: []
80
87
 
81
88
  rubyforge_project:
82
- rubygems_version: 1.3.6
89
+ rubygems_version: 1.3.7
83
90
  signing_key:
84
91
  specification_version: 3
85
92
  summary: Form builder additions for drier and localized forms, and association fields adding and removing with jQuery sweetness
86
93
  test_files:
87
- - test/helper.rb
88
94
  - test/support/models.rb
95
+ - test/helper.rb
89
96
  - test/test_dry_forms.rb