show message count in title #126
This commit is contained in:
parent
8c5c8a51bb
commit
e1ee9eefc9
|
@ -190,6 +190,8 @@ class MailCatcher
|
|||
.append($("<td/>").text(message.subject or "No subject").toggleClass("blank", !message.subject))
|
||||
.append($("<td/>").text(@formatDate(message.created_at)))
|
||||
.prependTo($("#messages tbody"))
|
||||
title = $('head title')
|
||||
title.text(title.text().replace(/^\(\d*\)/, "(#{@messagesCount()})"))
|
||||
|
||||
scrollToRow: (row) ->
|
||||
relativePosition = row.offset().top - $("#messages").offset().top
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
!!!
|
||||
%html.mailcatcher
|
||||
%head
|
||||
%title MailCatcher
|
||||
%title (0) MailCatcher
|
||||
%link{:href => "/favicon.ico", :rel => "shortcut icon"}
|
||||
= stylesheet_tag "mailcatcher"
|
||||
= javascript_tag "mailcatcher"
|
||||
|
|
Loading…
Reference in New Issue