dynamic_fieldsets 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.14
1
+ 0.1.15
@@ -24,7 +24,7 @@
24
24
  <% end %>
25
25
  </li>
26
26
  <% else %>
27
- <% fieldset_child = DynamicFieldsets::FieldsetChild.where( fieldset_id: fieldset.id, child_id: child.id, child_type: "DynamicFieldsets::Field" ).first %>
27
+ <% fieldset_child = DynamicFieldsets::FieldsetChild.where( fieldset_id: fieldset.id, child_id: child.id, child_type: "DynamicFieldsets::Field" ).first %>
28
28
  <li id="child-<%= fieldset_child.id %>" class="field<%= ' required' if child.required? %>">
29
29
  <div>
30
30
  <span class="fieldtype"><%= child.type %>:</span>
@@ -100,12 +100,6 @@ function get_field_type(field) {
100
100
  //
101
101
  // the dependency information is stored in dynamic_fieldsets_dependencies
102
102
  all_inputs.change( function() {
103
- update_fields();
104
- });
105
-
106
- // added this break down, so that update_fields can be called from the app
107
- // this is necessary when additional input types are used within fieldsets AU 08-14-13
108
- function update_fields() {
109
103
  field = $(this);
110
104
  var type = get_field_type(field);
111
105
  var fieldset_child_id = get_fieldset_child_id(field, type)
@@ -123,7 +117,7 @@ function update_fields() {
123
117
  update_dependency_group_for_fieldset_child(fieldset_child_id, group, user_inputs, fieldset_associator_id);
124
118
  });
125
119
  }
126
- };
120
+ });
127
121
 
128
122
  // checks the clauses for a dependency group and runs the action
129
123
  // group: the dependency group
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dynamic_fieldsets"
8
- s.version = "0.1.14"
8
+ s.version = "0.1.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremiah Hemphill", "Ethan Pemble", "John Carter"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_fieldsets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -520,7 +520,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
520
520
  version: '0'
521
521
  segments:
522
522
  - 0
523
- hash: 637972137212984627
523
+ hash: -4050550333899168397
524
524
  required_rubygems_version: !ruby/object:Gem::Requirement
525
525
  none: false
526
526
  requirements: