o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1350314051.5462332:@value"µ {I" class:EFI"ProcessedAsset; FI"logical_path; FI"admin/image_settings.js; FI" pathname; FI"r/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/image_settings.js; FI"content_type; FI"application/javascript; FI" mtime; FI"2012-08-27T12:12:01+01:00; FI"length; Fi>I"digest; F"%f38c8ad8b23533a8338d3b6833b290c2I"source; FI">$(document).ready(function() { if ($('input#preferences_use_s3[type="checkbox"]:checked').length > 0) $('#s3_settings').show(); // Toggle display of S3 settings based on value of use_s3 checkbox $('input#preferences_use_s3[type="checkbox"]').click(function() { $('#s3_settings').toggle(); }); $('.destroy_style').on("click", function() { $(this).parent().remove(); }); $('.destroy_header').on("click", function() { $(this).parent().remove(); }); // Handle adding new styles var styles_hash_index = 1; $('.add_style').click(function() { $('#styles_list').append(generate_html_for_hash("new_attachment_styles", styles_hash_index)); }); // Handle adding new headers var headers_hash_index = 1; $('.add_header').click(function() { $('#headers_list').append(generate_html_for_hash("new_s3_headers", headers_hash_index)); }); // Generates html for new paperclip styles form fields generate_html_for_hash = function(hash_name, index) { var html = '