diff --git a/public/javascripts/application.js b/public/javascripts/application.js index cc0c546..e9b93fb 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -4,24 +4,26 @@ var MailCatcher = { MailCatcher.load($(this).attr('data-message-id')); }); - $('#message .formats ul li').live('click', function() { + $('#message .actions ul li.tab').live('click', function() { MailCatcher.loadBody($('#mail tr.selected').attr('data-message-id'), $(this).attr('data-message-format')); }); MailCatcher.refresh(); + MailCatcher.subscribe(); }, addMessage: function(message) { - var row = $('