{:uriI"file://app/assets/javascripts/views/shared/flash.coffee?type=application/javascript&pipeline=self&id=c1df7191ac85d689e0cfc624463b2ba372be8f70dba90a669baf0182297e193b: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; 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; } 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'); 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"%מXjhA&U* Vڕp\ : lengthi\:dependencies_digest"%V҇T04Ѣ종#F) {:idI"Ec1df7191ac85d689e0cfc624463b2ba372be8f70dba90a669baf0182297e193b;F: mtimel+9ZV