Sha256: 32e639f06ed70676426e0f72d32a783bfe69c184444d1cf55809ea340948c9e2
Contents?: true
Size: 1.2 KB
Versions: 10
Compression:
Stored size: 1.2 KB
Contents
I"À(function() { if (typeof window.Alchemy === "undefined") { window.Alchemy = {}; } Alchemy.Growler = { build: function(message, flash_type) { var $flash_container, icon_class; $flash_container = $("<div class=\"flash " + flash_type + "\" />"); icon_class = (flash_type === "notice" ? "tick" : flash_type); $flash_container.append("<span class=\"icon " + icon_class + "\" />"); $flash_container.append(message); $("#flash_notices").append($flash_container); $("#flash_notices").show(); return Alchemy.Growler.fade(); }, fade: function() { $(".flash.notice, .flash.warning, .flash.warn, .flash.alert", "#flash_notices").delay(5000).hide("drop", { direction: "up" }, 400, function() { return $(this).remove(); }); return $(".flash.error", "#flash_notices").click(function() { return $(this).hide("drop", { direction: "up" }, 400, function() { return $(this).remove(); }); }); } }; Alchemy.growl = function(message, style) { if (style == null) { style = "notice"; } return Alchemy.Growler.build(message, style); }; }).call(this); :ET
Version data entries
10 entries across 7 versions & 2 rubygems