Sha256: d99b14074df9beab45d05797e8913de7e83bc6db4c4d193e593ad2a6f240d6b3
Contents?: true
Size: 1.49 KB
Versions: 6
Compression:
Stored size: 1.49 KB
Contents
; (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));
Version data entries
6 entries across 6 versions & 1 rubygems