Sha256: 1fec543a28db8c8f4c0b16a803cc63bb868e18e973cab1e82bb7475b3ac7f9b4
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.alert = { name : 'alert', version : '5.4.1', 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foundation-rails-5.4.2.0 | vendor/assets/javascripts/foundation/foundation.alert.js |