Sha256: f532ceeb1b087172f31712b71891073a29da604dded50b2d40c4b3b609a0a4cf

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"%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"required_assets_digest;TI"%66618eefdd3fffc383f4bb8b51b4d56b;FI"
_version;TI"%361c512b9086418778df946c0d278f91;F

Version data entries

8 entries across 4 versions & 1 rubygems

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