Sha256: eb1165da2297808f4f82c16b5b38b0ceed371a818a779df1b906ce4cff85fdfb
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
//= require_self //= require simple_attachments $(function() { $(".simple_attachments_singleton_div").bind("new_field", function(event, field) { field.appendTo($(this).children(".simple_attachments_add_file_div")); field.bind("loaded", function(event, data) { $("<img>").attr("src", data.filepath).appendTo(this); }); }); $(".simple_attachments_multiple_div").bind("new_field", function(event, field) { field.appendTo(this); field.bind("loaded", function(event, data) { data.destroy_link.appendTo(this); data.attachment_link.html(data.filename).appendTo(this); }); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_attachments-0.1.1 | test/app/assets/javascripts/attachments.js |