{I" class:ETI"ProcessedAsset;FI"logical_path;TI"hatchy/application.js;FI" pathname;TI"c/home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/application.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+/0•VI" length;TiMI" digest;TI"%0c2bb64fde037aea7732878400f3d27d;FI" source;TI"Mvar application = (function(){ // Cache DOM var $announcements = $('#announcements').data('announcements'); var $flash = $('#flash'); // Local Vars var theme = 'brighttheme'; var stack = { "dir1": "up", "dir2": "left", "firstpos1": 25, "firstpos2": 25 }; // Functions function setPNotify() { PNotify.prototype.options.styling = "fontawesome"; } function newFNotification(dataObj, notificationType) { new PNotify({ title: dataObj.data('type'), text: dataObj.data('message'), type: dataObj.data('type'), addclass: "stack-bottomright", stack: stack, styling: theme, buttons: { closer: true, sticker: false, icon: "fa fa-times", show_on_nonblock: true }, }); } function newANotification(dataObj) { new PNotify({ title: "Announcement", text: dataObj.data('message'), type: "notice", icon: "fa fa-info fa-lg", hide: false, nonblock: { nonblock: true, nonblock_opacity: .2 }, before_close: function(notice) { return $.ajax({ url: "announcements/" + obj.id + "/hide"}); }, addclass: "stack-bottomright", stack: stack, styling: theme, buttons: { closer: true, sticker: false, icon: "fa fa-times", show_on_nonblock: true }, }); } function checkFlashMsg() { if ($flash.length) { newFNotification($flash); } } function checkAnnouncements() { if ($announcements !== null) { i = 0; results = []; while (i < $announcements.length) { dataObj = announcements[i]; newANotification(dataObj); results.push(i++); } return results; } } setPNotify(); checkFlashMsg(); checkAnnouncements(); return {}; })(); ;TI"dependency_digest;TI"%d91a31346e5495e572de401bb94714fd;FI"required_paths;T[I"c/home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/application.js;FI"dependency_paths;T[{I" path;TI"c/home/bauser/Documents/dev/ruby/opensource/hatchy/app/assets/javascripts/hatchy/application.js;F@I"2016-01-12T10:56:15-06:00;T@I"%631c0554747c3fdb72cf466fbde3e4da;FI" _version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F