Sha256: a8610c31c06d6dc4499177a9875b9212f8858177dfd4f9d15b9229261fb3358a

Contents?: true

Size: 1.78 KB

Versions: 2

Compression:

Stored size: 1.78 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"dismissible_blocks.js;FI"
pathname;TI"\/Users/patrick/Projects/dismissible_blocks/app/assets/javascripts/dismissible_blocks.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ÆéSI"length;TiíI"digest;TI"%5899c9269b8df39850c2f69ca4cc847e;FI"source;TI"í(function() {
  (function($) {

    $.fn.dismissible = function(options) {
      return this.each(function() {
        var _this = $(this);
        $('[data-dismissible-hide]', this).click(function(event) {
          event.preventDefault();
          return _this.dismiss(options);
        })
      });
    };

    return $.fn.dismiss = function(options) {
      return $.ajax({
        type: 'POST',
        url: '/dismissible_blocks.json',
        dataType: 'json',
        contentType: 'application/json',
        data: JSON.stringify({
          block: $(this).attr('data-dismissible'),
          authenticity_token: $('meta[name=csrf-token]').attr('content')
        }),
        success: (function(_this) {
          return function() {
            if ((options != null) && options.dismiss !== void 0) {
              return options.dismiss(_this);
            } else {
              return $(_this).remove();
            }
          }
        })(this)
      });
    };

  })(jQuery);
}).call(this);
;TI"dependency_digest;TI"%ba72c46a4f7b91e95c9459208feb39ad;FI"required_paths;T[I"\/Users/patrick/Projects/dismissible_blocks/app/assets/javascripts/dismissible_blocks.js;FI"dependency_paths;T[{I"	path;TI"\/Users/patrick/Projects/dismissible_blocks/app/assets/javascripts/dismissible_blocks.js;FI"
mtime;TI"2014-03-03T15:44:54-05:00;TI"digest;TI"%5899c9269b8df39850c2f69ca4cc847e;FI"
_version;TI"%1005ed9f20e25fb0a0599a7017dd0e6b;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
dismissible_blocks-0.0.2 test/dummy/tmp/cache/assets/test/sprockets/ac2d5385dbcd9cea11c510dc83189bba
dismissible_blocks-0.0.2 test/dummy/tmp/cache/assets/test/sprockets/bec12e1e92fe458e19b5f9869454ac1a