vanilla 1.0.1 → 1.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.
@@ -0,0 +1,21 @@
1
+ function vanillaPrepareEditor() {
2
+ $('input.attribute_name').change(function() {
3
+ var dl_children = $('dl.attributes').children();
4
+ var dt_index = dl_children.index(this.parentNode) + 1;
5
+ var textarea_for_this = dl_children[dt_index].childNodes[0];
6
+ textarea_for_this.name = this.value;
7
+ });
8
+ }
9
+
10
+ $(document).ready(function() {
11
+
12
+ $('a#add').click(function() {
13
+ $('dl.attributes').append('<dt><input class="attribute_name" type="text"></input></dt><dd><textarea></textarea></dd>');
14
+ vanillaPrepareEditor();
15
+ return false;
16
+ });
17
+
18
+ vanillaPrepareEditor();
19
+
20
+ });
21
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Adam
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-09 00:00:00 +01:00
12
+ date: 2009-05-06 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -93,7 +93,6 @@ files:
93
93
  - spec/renderers/raw_renderer_spec.rb
94
94
  - spec/renderers/ruby_renderer_spec.rb
95
95
  - spec/renderers/vanilla_app_detecting_renderer_spec.rb
96
- - spec/soup_test.db
97
96
  - spec/spec_helper.rb
98
97
  - spec/vanilla_app_spec.rb
99
98
  - spec/vanilla_presenting_spec.rb
@@ -141,6 +140,10 @@ files:
141
140
  - lib/vanilla/test_snips.rb
142
141
  - lib/vanilla.rb
143
142
  - bin/vanilla
143
+ - public/hatch.png
144
+ - public/javascripts
145
+ - public/javascripts/jquery.js
146
+ - public/javascripts/vanilla.js
144
147
  has_rdoc: true
145
148
  homepage: http://github.com/lazyatom/vanilla-rb
146
149
  post_install_message:
Binary file