refinerycms-nested_models 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -44,7 +44,7 @@ You will also need to create the partial file mentioned (refinery/admin/pages/ne
44
44
  Below is an example of the nested model fields:
45
45
 
46
46
  ``` erb
47
- <fieldset class='nested'>
47
+ <fieldset class='nested' data-nested-item='true'>
48
48
  <div class='field'>
49
49
  <%= f.label :name %>
50
50
  <%= f.text_field :name %>
@@ -80,6 +80,12 @@ And the following to the nested model:
80
80
  attr_accessible :position
81
81
  ```
82
82
 
83
+ And the following to the nested field
84
+
85
+ ``` erb
86
+ <fieldset class='nested' data-sortable-item='true'>
87
+ ```
88
+
83
89
  ### Adding refinery images to nested models
84
90
 
85
91
  Add the following to the nested model:
@@ -3,7 +3,7 @@ jQuery ->
3
3
 
4
4
  $('form').on 'click', '[data-remove="true"]', (event) ->
5
5
  $(this).prev('input[type=hidden]').val('1')
6
- $(this).closest('[data-sortable-item="true"]').hide()
6
+ $(this).closest('[data-nested-item="true"]').hide()
7
7
  event.preventDefault()
8
8
 
9
9
  $('form').on 'click', '[data-add="true"]', (event) ->
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-nested_models
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Bolt