Sha256: d2562da9c7f79a54cafa34476761df0725449293507df49f7c09aa71ab67f00d
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
<script type="text/javascript"> $(function() { var container, data; container = $("#<%= field.id %> div.uploader-files"); container.sortable({ placeholder: "attach_item", cursor: "move", update: function(event, ui) { data = $(this).sortable("serialize", {key: "assets[]"}); $.rails.ajax({ url: "<%= uploader.attachment_path(field.klass) %>", type: "PUT", dataType: "json", data: data + "&klass=<%= field.klass %>" }); } }); }); </script>
Version data entries
3 entries across 3 versions & 1 rubygems