var App = App || {}; App.Presenters = App.Presenters || {}; App.Presenters.MessagePresenter = function(_, jQuery) { var options = { instant: false }; function showInfo($el, message) { return showMessage($el, 'info', message); } function showError($el, message) { return showMessage($el, 'error', message); } function hideMessages($el) { var $messages = $el.children('.message'); if (options.instant) { $messages.each(function() { jQuery(this).slideUp('fast', function() { jQuery(this).remove(); }); }); } else { $messages.remove(); } } function showMessage($el, className, message) { var $messageDiv = jQuery('