{:uriI"file://app/assets/javascripts/views/shared/flash.coffee?type=application/javascript&pipeline=self&id=78eb0cbb50a8e5d62e1391391a17cd5733ae25a21cfca4b3ceebadbc5ac067a9: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.hideAfterTime(); } }; Flash.prototype.hideAfterTime = 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"rails-env;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"%8f'EO>.m׵nG5/(A: lengthi:dependencies_digest"%wl÷ r,a;1i# R:idI"E78eb0cbb50a8e5d62e1391391a17cd5733ae25a21cfca4b3ceebadbc5ac067a9;F: mtimel+aW