formagic 0.2.8 → 0.2.9

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: 036c8cda2c3d45ac5416ec7dc3814badd8059221
4
- data.tar.gz: c0a7916829a12c07645d139f35691c73d98cb4b4
3
+ metadata.gz: d508096eac275d9a5cda7683ee526942a362f180
4
+ data.tar.gz: 9be79c0064286a486972bfa13f4b40bb4b9d7101
5
5
  SHA512:
6
- metadata.gz: 2e582b43b830297cc975e26c5275e045a473e2264ae2d8dfb1db98591121575963914a533830069d90e0c5383310806f24a8cec8862b8583fc09d83c44993b26
7
- data.tar.gz: 6de3953d65e323fb31129519d29fa44aa2707e664bfbef2366e8258b4e6136c37787de21a961088626e5c914c6482a6a10366b47930783dc88220a9c423d06e6
6
+ metadata.gz: e007928a2ca6e76eed02fadfdc360d68cd237132820ae2aa9727f40bf39cf90852e89a87d3f52f63c11e72e2ed5b8ef757c148c2114c5dc4e25ed228d86d994e
7
+ data.tar.gz: ebf4d48bbb2a6b0e23d882af094ed01d42b2865730d612d6e9e60171714a433199bd5d73062039e066bd5a30ef7eb85ee85943767eb1aff7808ece32a1eefc41
@@ -160,9 +160,10 @@ class @Form
160
160
 
161
161
  _forms: ->
162
162
  forms = [ @ ]
163
+
163
164
  addNestedForms = (form) ->
164
165
  for name, input of form.inputs
165
- if input.config.type == 'form' || input.config.type == 'documents'
166
+ if input.config.type == 'form' || input.config.type == 'documents' || input.config.type == 'document'
166
167
  forms = forms.concat(input.forms)
167
168
  addNestedForms(form) for form in input.forms
168
169
  addNestedForms(@)
@@ -57,6 +57,8 @@ class @InputDocument
57
57
  _add_forms: ->
58
58
  @nestedForm = @_render_form(@nestedObject, @config.namePrefix, @config)
59
59
 
60
+ @forms = [ @nestedForm ]
61
+
60
62
  @$form = @nestedForm.$el
61
63
  @$label.after @$form
62
64
 
@@ -1,3 +1,3 @@
1
1
  module Formagic
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formagic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bourbon
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project: formagic
172
- rubygems_version: 2.4.6
172
+ rubygems_version: 2.4.5.1
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Easy to use javascript forms builder.