{I" class:ETI"ProcessedAsset;FI"logical_path;TI"storytime/post_types.js;FI" pathname;TI"`/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/post_types.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+¯§īSI" length;Ti}I" digest;TI"%25f1dabe3dd1ac722d2454ecb5d3ee18;FI" source;TI"}(function() { Storytime.Dashboard.PostTypes = (function() { function PostTypes() {} PostTypes.prototype.initForm = function() { $(document).on('click', 'form .remove_fields', function(event) { $(this).prev('input[type=hidden]').val('1'); $(this).closest('fieldset').hide(); return event.preventDefault(); }); return $(document).on('click', 'form .add_fields', function(event) { var regexp, time; time = new Date().getTime(); regexp = new RegExp($(this).data('id'), 'g'); $(this).before($(this).data('fields').replace(regexp, time)); return event.preventDefault(); }); }; PostTypes.prototype.initNew = function() { return this.initForm(); }; PostTypes.prototype.initEdit = function() { return this.initForm(); }; return PostTypes; })(); }).call(this); ;TI"dependency_digest;TI"%66618eefdd3fffc383f4bb8b51b4d56b;FI"required_paths;T[I"`/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/post_types.js.coffee;FI"dependency_paths;T[{I" path;TI"`/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/post_types.js.coffee;FI" mtime;TI"2014-08-16T13:49:19-05:00;TI" digest;TI"%f657be92ec6a7c419a9e741e4c0dd4ae;FI" _version;TI"%361c512b9086418778df946c0d278f91;F