README.md in dynatree-rails-0.0.2 vs README.md in dynatree-rails-0.0.3

- old
+ new

@@ -1,7 +1,9 @@ -# Dynatree::Rails +# Dynatree-Rails +A Dynatree integration for rails 3.1 asset pipeline + http://code.google.com/p/dynatree/ ## Installation Add this line to your application's Gemfile: @@ -33,11 +35,13 @@ For dynatree usage and examples see: http://code.google.com/p/dynatree/ ## An optional model-to-javascript tree renderer for mongoid_nested_set Can be used to turn association select to a tree select, like this: - + + + #checkboxes = f.association :categories, as: :check_boxes, collection: Category.all #tree.controls.input{style: 'width: 220px;'} :javascript @@ -55,11 +59,11 @@ }); $("form").submit(function() { var tree = $("#tree").dynatree("getTree"), arr = tree.serializeArray(), - sel = $('#restaurant_category_ids'); + sel = $('#checkboxes'); sel.find('option:selected').removeAttr('selected'); $.each(arr, function(k, v) { sel.find('[value=' + v.value + ']').prop('selected', 'selected'); }); }); @@ -70,5 +74,18 @@ 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request + +## License + +Dynatree is + + Copyright (c) 2008-2011, Martin Wendt (http://wwWendt.de) + Dual licensed under the MIT or GPL Version 2 licenses. + http://code.google.com/p/dynatree/wiki/LicenseInfo + +This code is: + + Copyright (c) 2008-2011, GlebTV + Dual licensed under the MIT or GPL Version 2 licenses. \ No newline at end of file