{:uriI"file://app/assets/javascripts/views/shared/flash.coffee?type=application/javascript&pipeline=self&id=b079504429f14ca2ab32f39e58af93d82b2e934c93369706cbf7fa531f93812a:ET:load_pathI"app/assets/javascripts;T: filenameI"5app/assets/javascripts/views/shared/flash.coffee;T: nameI"views/shared/flash;T:logical_pathI"views/shared/flash.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; App.Views.Shared.Flash = (function(superClass) { extend(Flash, superClass); function Flash(opts) { var ref, ref1, ref2, ref3; if (opts == null) { opts = {}; } Flash.__super__.constructor.call(this, opts); this.notice = (ref = opts.notice) != null ? ref : null; this.alert = (ref1 = opts.alert) != null ? ref1 : null; this.warning = (ref2 = opts.warning) != null ? ref2 : null; this.hide = (ref3 = opts.hide) != null ? ref3 : true; } Flash.prototype.setNotice = function(text) { return this.notice = text; }; Flash.prototype.setAlert = function(text) { return this.alert = text; }; Flash.prototype.setWarning = function(text) { return this.warning = text; }; Flash.prototype.render = function() { var node; node = $('.flash'); node.removeClass('notice').removeClass('alert').removeClass('warning'); if (this.notice != null) { node.addClass('notice'); node.find('p').text(this.notice); } else if (this.alert != null) { node.addClass('alert'); node.find('p').text(this.alert); } else if (this.warning != null) { node.addClass('warning'); node.find('p').text(this.warning); } node.slideDown('normal'); if (this.hide) { return this.hide(); } }; Flash.prototype.hide = function(time) { if (time == null) { time = 4000; } return setTimeout(function() { return $('.flash').slideUp('normal'); }, time); }; return Flash; })(App.Views.Base); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"Cfile-digest://app/assets/javascripts/views/shared/flash.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%CԢ##1t- ^T!: lengthi:dependencies_digest"%a"cxl#Ʀo\pᬍTZ:idI"Eb079504429f14ca2ab32f39e58af93d82b2e934c93369706cbf7fa531f93812a;F: mtimel+GHW