Sha256: 647acf3475794aca61f6c3b9874b1bedaab5359f049be06f2080948f90447bfa

Contents?: true

Size: 1.58 KB

Versions: 6

Compression:

Stored size: 1.58 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"active_admin/lib/flash.js;FI"
pathname;TI"‰/opt/rubies/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/active_admin-c5e3ab82b9b5/app/assets/javascripts/active_admin/lib/flash.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ۆ'UI"length;TiDI"digest;TI"%3b192e46aa7cfb84564bb46620d3c28a;FI"source;TI"D(function() {
  var Flash;

  ActiveAdmin.flash = Flash = (function() {
    Flash.error = function(message, close_after) {
      return new this(message, "error", close_after);
    };

    Flash.notice = function(message, close_after) {
      return new this(message, "notice", close_after);
    };

    Flash.prototype.reference = function() {
      return this.reference;
    };

    function Flash(message1, type, close_after) {
      this.message = message1;
      this.type = type != null ? type : "notice";
      this.reference = jQuery("<div>").addClass("flash flash_" + this.type).text(this.message);
      jQuery(".flashes").append(this.reference);
      if (close_after != null) {
        this.close_after(close_after);
      }
    }

    Flash.prototype.close_after = function(close_after) {
      return setTimeout((function(_this) {
        return function() {
          return _this.close();
        };
      })(this), close_after * 1000);
    };

    Flash.prototype.close = function() {
      return this.reference.remove();
    };

    return Flash;

  })();

}).call(this);
;TI"required_assets_digest;TI"%750b879e5aaa2832c88f1a46cca01f50;FI"
_version;TI"%64e62ddc273c2f5847f30d698ca14b67;F

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
admin_invitable-0.0.3 spec/dummy/tmp/cache/assets/development/sprockets/bc20cbb537a9608646f5fd61ac4f5b6e
admin_invitable-0.0.3 spec/dummy/tmp/cache/assets/development/sprockets/cbadbd4277993092f7c0ce14ae07a11d
admin_invitable-0.0.2 spec/dummy/tmp/cache/assets/development/sprockets/bc20cbb537a9608646f5fd61ac4f5b6e
admin_invitable-0.0.2 spec/dummy/tmp/cache/assets/development/sprockets/cbadbd4277993092f7c0ce14ae07a11d
admin_invitable-0.0.1 spec/dummy/tmp/cache/assets/development/sprockets/bc20cbb537a9608646f5fd61ac4f5b6e
admin_invitable-0.0.1 spec/dummy/tmp/cache/assets/development/sprockets/cbadbd4277993092f7c0ce14ae07a11d