Sha256: 22ac3a90199952ea8ea6748a1ae714466896f84fcc2fa5c39e2ae8bd4550a307
Contents?: true
Size: 1.76 KB
Versions: 2
Compression:
Stored size: 1.76 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+SPïTI"length; TiíI"digest; TI"%df66a7f3d7e311d770b058e76c207e6f; 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"%4c544bb2708f22fc7fbdb384d11c6a34; 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; F@I"2015-02-26T11:56:51-05:00; T@I"%df66a7f3d7e311d770b058e76c207e6f; FI" _version; TI"%4bf7b15359fe8e0974f7f263e26e27f4; F
Version data entries
2 entries across 1 versions & 1 rubygems