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

Version Path
storytime-1.0.2 spec/dummy/tmp/cache/assets/test/sprockets/5eba02e5d73179a329eb4c1a909fbea6
storytime-1.0.2 spec/dummy/tmp/cache/assets/test/sprockets/83f0cb8cd4d24b5c888e18cc62265c6e
storytime-1.0.1 spec/dummy/tmp/cache/assets/test/sprockets/5eba02e5d73179a329eb4c1a909fbea6
storytime-1.0.1 spec/dummy/tmp/cache/assets/test/sprockets/83f0cb8cd4d24b5c888e18cc62265c6e
storytime-1.0.0 spec/dummy/tmp/cache/assets/test/sprockets/5eba02e5d73179a329eb4c1a909fbea6
storytime-1.0.0 spec/dummy/tmp/cache/assets/test/sprockets/83f0cb8cd4d24b5c888e18cc62265c6e
storytime-0.0.4 spec/dummy/tmp/cache/assets/test/sprockets/5eba02e5d73179a329eb4c1a909fbea6
storytime-0.0.4 spec/dummy/tmp/cache/assets/test/sprockets/83f0cb8cd4d24b5c888e18cc62265c6e