Sha256: 30624f40a54bf5916c489b636d9dd3393dbaa7bad8006692bd34c977f5af0d74
Contents?: true
Size: 1.72 KB
Versions: 8
Compression:
Stored size: 1.72 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"#foundation/foundation.alert.js; FI" pathname; TI"‚/Users/aaron/.rvm/gems/ruby-2.1.4@push_type/gems/foundation-rails-5.5.1.0/vendor/assets/javascripts/foundation/foundation.alert.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+èÙTI"length; TiÐI"digest; TI"%e54c2d9000574a39e07b2e6ede6ae0f6; FI"source; TI"Ð;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.alert = { name : 'alert', version : '5.5.0', settings : { callback: function (){} }, init : function (scope, method, options) { this.bindings(method, options); }, events : function () { var self = this, S = this.S; $(this.scope).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] .close', function (e) { var alertBox = S(this).closest('[' + self.attr_name() + ']'), settings = alertBox.data(self.attr_name(true) + '-init') || self.settings; e.preventDefault(); if (Modernizr.csstransitions) { alertBox.addClass('alert-close'); alertBox.on('transitionend webkitTransitionEnd oTransitionEnd', function(e) { S(this).trigger('close').trigger('close.fndtn.alert').remove(); settings.callback(); }); } else { alertBox.fadeOut(300, function () { S(this).trigger('close').trigger('close.fndtn.alert').remove(); settings.callback(); }); } }); }, reflow : function () {} }; }(jQuery, window, window.document)); ; TI"required_assets_digest; TI"%a0c8afb9d7dbd215a6bdc769d767b433; FI" _version; TI"%64e62ddc273c2f5847f30d698ca14b67; F
Version data entries
8 entries across 4 versions & 2 rubygems