Sha256: e3f454776bc22c9b668e38d9991ac4ae996d4aba216ea14bdf7e6e7dedb7179a
Contents?: true
Size: 1.34 KB
Versions: 8
Compression:
Stored size: 1.34 KB
Contents
{I" class:ETI"BundledAsset; 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"%eec6e023d82a01d8c427ba150fe37d3c; 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"required_assets_digest; TI"%cb9d4dfafe43e6754437b88b899829f7; FI" _version; TI"%2b66aa67c90052d553e0328c249bc9b0; F
Version data entries
8 entries across 4 versions & 1 rubygems