{I" class:ETI"ProcessedAsset;FI"logical_path;TI"twitter/bootstrap/alert.js;FI" pathname;TI"/media/storage/RVM/gems/ruby-2.1-head/gems/twitter-bootstrap-rails-3.2.2/app/assets/javascripts/twitter/bootstrap/alert.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+æwVI" length;TiµI" digest;TI"%5182824f8cc8074c2fcc93afc3db9fbf;FI" source;TI"µ/* ======================================================================== * Bootstrap: alert.js v3.2.0 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ +function ($) { 'use strict'; // ALERT CLASS DEFINITION // ====================== var dismiss = '[data-dismiss="alert"]' var Alert = function (el) { $(el).on('click', dismiss, this.close) } Alert.VERSION = '3.2.0' Alert.prototype.close = function (e) { var $this = $(this) var selector = $this.attr('data-target') if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } var $parent = $(selector) if (e) e.preventDefault() if (!$parent.length) { $parent = $this.hasClass('alert') ? $this : $this.parent() } $parent.trigger(e = $.Event('close.bs.alert')) if (e.isDefaultPrevented()) return $parent.removeClass('in') function removeElement() { // detach from parent, fire event then clean up data $parent.detach().trigger('closed.bs.alert').remove() } $.support.transition && $parent.hasClass('fade') ? $parent .one('bsTransitionEnd', removeElement) .emulateTransitionEnd(150) : removeElement() } // ALERT PLUGIN DEFINITION // ======================= function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) } var old = $.fn.alert $.fn.alert = Plugin $.fn.alert.Constructor = Alert // ALERT NO CONFLICT // ================= $.fn.alert.noConflict = function () { $.fn.alert = old return this } // ALERT DATA-API // ============== $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) }(jQuery); ;TI"dependency_digest;TI"%b0eda00e6c4628ae81b3243de11bcb96;FI"required_paths;T[I"/media/storage/RVM/gems/ruby-2.1-head/gems/twitter-bootstrap-rails-3.2.2/app/assets/javascripts/twitter/bootstrap/alert.js;FI"dependency_paths;T[{I" path;TI"/media/storage/RVM/gems/ruby-2.1-head/gems/twitter-bootstrap-rails-3.2.2/app/assets/javascripts/twitter/bootstrap/alert.js;FI" mtime;TI"2015-12-21T12:44:06+01:00;TI" digest;TI"%eddf6dcf88496babe2c16387fd00757a;FI" _version;TI"%fe82060ddd5abc7a183f06d3133bf90f;F