awesome_nested_fields 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AwesomeNestedFields
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -193,7 +193,11 @@
193
193
 
194
194
  function insertEmpty(options) {
195
195
  if(findItems(options).length === 0) {
196
- options.container.append(options.emptyTemplate.html());
196
+ var contents = options.emptyTemplate.html();
197
+ if(options['unescapeTemplate']) {
198
+ contents = unescape_html_tags(contents);
199
+ }
200
+ options.container.append(contents);
197
201
  }
198
202
  }
199
203
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_nested_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
- requirement: &2153208860 !ruby/object:Gem::Requirement
17
+ requirement: &2160796480 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.0.0
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *2153208860
25
+ version_requirements: *2160796480
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rails
28
- requirement: &2153208320 !ruby/object:Gem::Requirement
28
+ requirement: &2160790120 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2153208320
36
+ version_requirements: *2160790120
37
37
  description: Awesome dynamic nested fields for Rails and jQuery
38
38
  email: lailson@guava.com.br
39
39
  executables: []