FORGE.features.notifications = { init: function () { var self = FORGE.features.notifications; if ($('#notification-bar').find('span').html() !== '') { $('#notification-bar').slideDown(); } $('body').on('click', self.clearNotifications) }, clearNotifications: function () { var self = FORGE.features.notifications; $('#notification-bar').slideUp(); $('#warning').fadeOut(function () { $('#warning').remove(); }); }, newWarning: function (message) { $('
').attr('id', 'warning').html(message).appendTo('body'); }, newNotice: function (message) { var self = FORGE.features.notifications; $('#notification-bar').find('span').html(message).end().slideDown(); } }