Sha256: 4a46c494a41dd1125f4fda63a3d88f61f73f323a3c651d49c2adf3a8e8de9488

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

{I"
class:ETI"BundledAsset;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"%eafe627e1327df6cf96e84c3d4c387a6;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"required_assets_digest;TI"%6cfcd2d90f65f744f9354bb63f46567d;FI"
_version;TI"%a56df69ef97ba4d9f1a23bf9b0add58a;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
dismissible_blocks-1.1.0 test/dummy/tmp/cache/assets/development/sprockets/996481d37a8199e763e8fcf21a801422
dismissible_blocks-1.1.0 test/dummy/tmp/cache/assets/development/sprockets/ac2d5385dbcd9cea11c510dc83189bba
dismissible_blocks-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/996481d37a8199e763e8fcf21a801422
dismissible_blocks-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/ac2d5385dbcd9cea11c510dc83189bba