README.md in dynatree-rails-0.0.3 vs README.md in dynatree-rails-0.0.4
- old
+ new
@@ -60,12 +60,12 @@
$("form").submit(function() {
var tree = $("#tree").dynatree("getTree"),
arr = tree.serializeArray(),
sel = $('#checkboxes');
- sel.find('option:selected').removeAttr('selected');
+ sel.find(':checked').prop('checked', false);
$.each(arr, function(k, v) {
- sel.find('[value=' + v.value + ']').prop('selected', 'selected');
+ sel.find('[value=' + v.value + ']').prop('checked', true);
});
});
});
## Contributing
\ No newline at end of file