o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1337815045.123491:@value"¼{I" class:EFI"ProcessedAsset; FI"logical_path; F"cms/attachment_manager.jsI" pathname; F"‘/Users/josiahivey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/browsercms-3.5.0.alpha/app/assets/javascripts/cms/attachment_manager.js.erbI"content_type; FI"application/javascript; FI" mtime; FI"2012-05-15T13:58:23-05:00; FI"length; FièI"digest; F"%0d6377997f9b8ecfa320884c360d8afbI"source; FI"è// Allows users to upload files via AJAX as attachments for a given block. // $(function () { // Return the authenticity token for any JS function that needs to do AJAX. // Since AJAX posts will fail if you don't attach this as defined here: http://michaelhendrickx.com/201012_jquery-ajax-with-rails-authenticity-token.html $.cms.auth_token = function () { return $('meta[name=csrf-token]').attr('content'); }; $.cms.AttachmentManager = { upload:function (file) { var assetName = $('#asset_types').val() , attachableClass = $('#asset_attachable_class').val() , attachableIDField = $('#asset_attachable_id') , attachableID = attachableIDField.val() , file = $('#asset_add_file') , clone = file.clone() , form = $('