Sha256: 9ee491c0ae1f164563cef23fd18696e2cf5c6100403faf72c9199935b966f97d

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"%8ae240e5151d5545f11b4744d17768e9;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"%f666f0f026ab778b046948b495383d9b;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"%8ae240e5151d5545f11b4744d17768e9;FI"
_version;TI"%883b724e06f474a3db2deee10c127ab9;F

Version data entries

2 entries across 1 versions & 1 rubygems

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