Sha256: 1ec06171c4ffd32ac42d6152c1725f25320fe0ab2656b71b9bff6c54629589a1
Contents?: true
Size: 616 Bytes
Versions: 3
Compression:
Stored size: 616 Bytes
Contents
//= require jquery.uploadify.js //= require nested_attachments_uploader.js //= require_self function add_nested_resources() { $('#add-nested-resources').nestedAttachmentsUploader({ uploadsContainer: $('#nested_resources') }); }; function delete_nested_resource() { $("#nested_resources a.delete").live("click", function(){ var link = $(this); var id = link.attr("id"); var url = "/" + id.replace("_", "/"); $.post(url, function(data) { link.parents(".fields:first").remove(); }); }); }; $(document).ready(function(){ add_nested_resources(); delete_nested_resource(); });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uploadify_rails-0.0.15 | vendor/assets/javascripts/uploadify.js |
uploadify_rails-0.0.14 | vendor/assets/javascripts/uploadify.js |
uploadify_rails-0.0.12 | vendor/assets/javascripts/uploadify.js |