Sha256: 3b17f1159bf853394fe581d694dfae7b162b15f3b5d7550d2f88a3ac63550138

Contents?: true

Size: 1.21 KB

Versions: 45

Compression:

Stored size: 1.21 KB

Contents

;(function ($, window, document, undefined) {
  'use strict';

  Foundation.libs.alert = {
    name : 'alert',

    version : '5.3.3',

    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() + '] a.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

45 entries across 45 versions & 3 rubygems

Version Path
fastlane-plugin-polidea-2.2.0.pre.1 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-2.2.0.pre lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-2.1.1.pre.2 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-2.1.1.pre.1 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-2.1.1.pre lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-2.1.0 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-2.0.0 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-1.0.0 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-1.0.0.pre lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.6.4 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.6.3 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.6.2 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.6.1 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.6.0 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.6.0.pre.1 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.6.0.pre lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.5.0 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.4.5 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.4.4 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js
fastlane-plugin-polidea-0.4.3 lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js