Sha256: 02e6389109469d1dfd71e4c5f7890391d3643040768b608aa382fd8a314f2861

Contents?: true

Size: 1.85 KB

Versions: 2

Compression:

Stored size: 1.85 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"$foundation/foundation.alerts.js;FI"
pathname;TI"m/home/irenepobre/.rvm/gems/ruby-2.0.0-p247/gems/zurb-foundation-4.3.2/js/foundation/foundation.alerts.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ÍõPRI"length;TiqI"digest;TI"%b6a26a860a6ae12a5e82ca94656bcde1;FI"source;TI"q/*jslint unparam: true, browser: true, indent: 2 */


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

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

    version : '4.3.2',

    settings : {
      animation: 'fadeOut',
      speed: 300, // fade out speed
      callback: function (){}
    },

    init : function (scope, method, options) {
      this.scope = scope || this.scope;
      Foundation.inherit(this, 'data_options');

      if (typeof method === 'object') {
        $.extend(true, this.settings, method);
      }

      if (typeof method !== 'string') {
        if (!this.settings.init) { this.events(); }

        return this.settings.init;
      } else {
        return this[method].call(this, options);
      }
    },

    events : function () {
      var self = this;

      $(this.scope).on('click.fndtn.alerts', '[data-alert] a.close', function (e) {
          var alertBox = $(this).closest("[data-alert]"),
              settings = $.extend({}, self.settings, self.data_options(alertBox));

        e.preventDefault();
        alertBox[settings.animation](settings.speed, function () {
          $(this).remove();
          settings.callback();
        });
      });

      this.settings.init = true;
    },

    off : function () {
      $(this.scope).off('.fndtn.alerts');
    },

    reflow : function () {}
  };
}(Foundation.zj, this, this.document));
;TI"required_assets_digest;TI"%60e893c6679818ce52479485aa731138;FI"
_version;TI"%2cf3622cbba861b85d33ffabfa420c13;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
templator_chabz-0.9.0 test/dummy/tmp/cache/assets/development/sprockets/bfca04565e745a9dcb660191f63c2dd0
templator_chabz-0.9.0 test/dummy/tmp/cache/assets/development/sprockets/90c20156d1c9a5163e51c8c056ff5777